Saturday, July 31, 2010

How to get Row Index at Row Command event of GridView

 If e.CommandName.Equals("Save") Then
            Dim gvr As GridViewRow = CType(CType(e.CommandSource, LinkButton).NamingContainer, GridViewRow)
            Dim RowIndex As Integer = gvr.RowIndex
End If

No comments:

Post a Comment