User219039814 posted
I want to give headings to girdview.
But i want to skip the first 2 columns and start my column span from the third column onwards.
Is there a method where i can specify the start and stop range for column span
GridViewRow row = new GridViewRow(0, 0, DataControlRowType.Header, DataControlRowState.Normal);
TableHeaderCell cell = new TableHeaderCell();
cell.Text = "First Year";
cell.ColumnSpan = 2;
row.Controls.Add(cell);
cell = new TableHeaderCell();
cell.ColumnSpan=2
cell.Text = "Second Year";
row.BackColor = ColorTranslator.FromHtml("#3AC0F2");
displayData.HeaderRow.Parent.Controls.AddAt(0, row);