E
Elton Wang
Hi John,
What you missed is you should handle DataGrid ItemCommand
event rather than SelectedIndexChanged event.
Change to following code:
AddHandler dg1.ItemCommand, AddressOf dg1_ItemCommand
And
Private Sub dg1_ItemCommand(ByVal source As Object, ByVal
e As System.Web.UI.WebControls.DataGridCommandEventArgs)
Handles dg1.ItemCommand
If e.CommandName.Equals("Select") Then
Dim s As String = "See Spot run ...."
End If
End Sub
to see what happens.
Hope it is helpful to you.
Elton Wang
(e-mail address removed)
What you missed is you should handle DataGrid ItemCommand
event rather than SelectedIndexChanged event.
Change to following code:
AddHandler dg1.ItemCommand, AddressOf dg1_ItemCommand
And
Private Sub dg1_ItemCommand(ByVal source As Object, ByVal
e As System.Web.UI.WebControls.DataGridCommandEventArgs)
Handles dg1.ItemCommand
If e.CommandName.Equals("Select") Then
Dim s As String = "See Spot run ...."
End If
End Sub
to see what happens.
Hope it is helpful to you.
Elton Wang
(e-mail address removed)