Need help to resolve a issue related with Gridview layout. I am trying to implement custome Gridview with Itemtemplate Columns using C#.Net language and want to include view
Use RowDataBound event instead:
void GridView31_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow ) { if (e.Row.RowIndex % 4 == 0) { e.Row.Cells[0].Attributes.Add("rowspan", "4"); } else { e.Row.Cells[0].Visible = false; } } }