Protected Sub GridView2_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView2.RowCommand
Dim gvrow1 As LinkButton = e.CommandSource
Dim gvrow As GridViewRow = gvrow1.Parent.Parent
Dim row As String = gvrow.Cells(2).Text
' 行号
Dim rowcount As String = gvrow.RowIndex
End Sub
Dim gvrow1 As LinkButton = e.CommandSource
Dim gvrow As GridViewRow = gvrow1.Parent.Parent
Dim row As String = gvrow.Cells(2).Text
' 行号
Dim rowcount As String = gvrow.RowIndex
End Sub