Hide Necessary Header Text using Gridview in C#.net
if (e.Row.RowType == DataControlRowType.Header)
{
e.Row.Cells[7].Visible = false;
e.Row.Cells[8].Visible = false;
e.Row.Cells[9].Visible = false;
e.Row.Cells[10].Visible = false;
}
if (e.Row.RowType == DataControlRowType.Header)
{
e.Row.Cells[7].Visible = false;
e.Row.Cells[8].Visible = false;
e.Row.Cells[9].Visible = false;
e.Row.Cells[10].Visible = false;
}
No comments:
Post a Comment