I am new to the gridview in .net 2.0.
i am tying to get the id for the record that i select in the grid.
this is my code
Protected Sub GridView1_RowEditing(ByVal
sender As Object, ByVal e As System.Web.UI.WebControls.
GridViewEd
itEventArg
s) Handles GridView1.RowEditing
Dim tempid As String
tempid = GridView1.SelectedDataKey.
Item(
myBL.Load(tempid)
End Sub
this is the line that i cannot figure out
GridView1.SelectedDataKey.
Item(
i have a Datakey set that is the index of my dataset.
do i need to create a column to beable to use the value of it or is it like vs 2003 where you set the datakey and once you reference it you using e.item.item value you have the value and can use it
please help
jcook32
Start Free Trial