title: How to span columns using grid view in asp.net
body: <p>i am using a gridview in Asp.net to show data in a table</p>
  
  <p>i want to show data like this -</p>
  
  <pre><code>Sr.No    ClassStandard    Division    Total
  ---------------------------------------------
                            A      B
  ---------------------------------------------
   1.        First         10      20     30
   2.        Second        15      15     30
  </code></pre>
  
  <p>if i direclty attach the source then the data comes like this-</p>
  
  <pre><code>  ClassStandard   A       B     Total
    ------------------------------------------
     First         10      20     30
     Second        15      15     30
  </code></pre>
  
  <p>Here is the code:</p>
  
  <pre><code>if (!IsPostBack)
      {
          try
          {
              IApplicationContext ctx = ContextRegistry.GetContext();
              IServices reg = (IServices)ctx.GetObject("Services");
  
              DataSet ds = reg.getInstituteStatusByDistrict();
              int Count = ds.Tables[0].Rows.Count;
              gridviewdistrictReport.DataSource = ds;
              gridviewdistrictReport.DataBind();
          }
      }
  </code></pre>
  
  <p>Note:I am using Spring .net for database connectivity</p>
  
  <p>inside Aspx file</p>
  
  <pre><code> &lt;asp:GridView ID="gridviewdistrictReport" runat="server"&gt;
  </code></pre>
  
  <p>how should i display the upper row with division spanning to both columns..
  Please help me..</p>