‘隐藏gridview第一列 ProtectedSub GridView1_RowCreated()Sub GridView1_RowCreated(ByVal sender AsObject, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowCreated If e.Row.RowType = DataControlRowType.DataRow Or e.Row.RowType = DataControlRowType.Header Then e.Row.Cells(0).Visible =False 'e.Row.Cells(0).Width = 80 EndIf End Sub