Hi,
I am using below code to hide a column in Gridview. Gridview have one template field(Checkbox) and multiple coulmns.And Auto generated field propert is true,remember there is no bound field.But it display an error.
My code::
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Cells[4].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