Friday, September 3, 2010

How to get GridView RowIndex in RowCommand function

Protected Sub RouteDataGridView_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles RouteDataGridView.RowCommand

''MAY BE REQUIRED LATER FOR BUTTONS
''If (e.CommandName = "DeleteRoutepoints") Then
''Dim grrow As GridViewRow = CType(CType(e.CommandSource, Button).Parent.Parent, GridViewRow)
''cRoute.DeleteRouteConfiguration(grrow.Cells(0).Text.ToString.Trim, grrow.Cells(1).Text.ToString.Trim, grrow.Cells(2).Text.ToString.Trim)
''End If

End Sub

No comments:

Post a Comment