title: Merge Merging GridView Header Columns Multiple Headers ASP.NET
body: <pre><code>protected void GrdLeaveMaster_RowCreated(object sender, GridViewRowEventArgs e)
  {
      if (e.Row.RowType == DataControlRowType.Header)
      {
          GridView HeaderGrid = (GridView)sender;
          GridViewRow HeaderGridRow =
          new GridViewRow(2, 2, DataControlRowType.EmptyDataRow,
          DataControlRowState.Insert);
          TableCell HeaderCell = new TableCell();
          HeaderCell.Text = "PaidLeave";
          HeaderCell.ColumnSpan = 2;
          HeaderGridRow.Cells.Add(HeaderCell);
  
          HeaderCell = new TableCell();
          HeaderCell.Text = "accumulated";
          HeaderCell.ColumnSpan = 2;
          HeaderGridRow.Cells.Add(HeaderCell);
  
          GrdLeaveMaster.Controls[0].Controls.AddAt(0, HeaderGridRow);
      }
  }
  </code></pre>
  
  <p>I want  header does not show in first column it shows on second column</p>
  
  <p><img src="https://i.stack.imgur.com/irPOQ.png" alt="enter image description here"></p>