hello
i am using grid view and i want to hide the 2nd column
i have tried the following code

    Private Sub gvmain_RowDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewRowEventArgs) Handles
gvmain.RowDataBound
        e.Row.Cells(1).Visible = False
    End Sub

this code hides the column but also gives exception
"Specified argument was out of the range of valid values. Parameter
name: index"

plz solve this problum
thanx in advance

Reply via email to