Hi,
I am using below code to hide a column in Gridview. But it display an error.
My code::
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Cells[7].Visible =false;//error generated on this line
}
Error::
Specified argument was out of the range of valid values Parameter name: index
Please help me.
Thanks !
Pankaj