Add a 'Select'
CommandField
Column to your GridView.
<asp:CommandField HeaderText="Select" ShowSelectButton="True" />
Now when user selects a particular row,
Row_Command
event of the GridView is fired. So you do something like this
Protected Sub GridView1_RowCommand(sender As Object, e As GridViewCommandEventArgs)
If e.CommandName = "Select" Then
Dim rowIndex As Integer = Convert.ToInt32(e.CommandArgument) - 1
End If
End Sub
By the way, you could have also tried Googling for a solution:
select a row in gridview[
^]
Hope this helps! :thumbsup: