Skip to content

Gridview Cell splitting

Sreekanth Reddy

Asked Jan 1, 2015, 5:26 PM EST1 answer
Share
LinkedInX
Please Explain the below statement:
 
GridViewRow row = new GridViewRow(0, 0, DataControlRowType.Header, DataControlRowState.Normal); 
 
 
Code
TableHeaderCell cell = new TableHeaderCell();
    cell.Text = "Customers";
    cell.ColumnSpan = 2;
    row.Controls.Add(cell);
 
GridView1.HeaderRow.Parent.Controls.AddAt(0, row); 
 
Thank you. 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 1 short reply
    • Vithal Wadje
      0
      you are adding row
      0