Mike_Stevens
asked on
Link Button in Gridview Template Column
I have a template column in a asp.net web form that has a link button in it. when I click on the link button I want to read the value from the third column for the current row. The following code works fine in a command column of the grid but not from the template column:
Dim x As String = Me.GridView1.Rows(Me.GridV iew1.Selec tedRow.Row Index).Cel ls(3).Text
If I use this in the template column it returns an error.
What am I doing wrong?
Dim x As String = Me.GridView1.Rows(Me.GridV
If I use this in the template column it returns an error.
What am I doing wrong?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Dim x As String =CType(GridView1.SelectedR