Hi there,
I'm using asp.net 2.0 vb
And I wrote this
Protected Sub GridView1_Selec tedIndexChanged (ByVal sender As Object, ByVal e
As System.EventArg s) Handles GridView1.Selec tedIndexChanged
txtGNID.Text = Me.GridView1.Se lectedRow.Cells (1).Text
End Sub
Every time when I slecet row my text box will show the selected cell value
(in this case is my VendorID)
Now I have a DetailsView
Protected Sub DetailsView1_Pa geIndexChanging (ByVal sender As Object, ByVal e
As System.Web.UI.W ebControls.Deta ilsViewPageEven tArgs) Handles
DetailsView1.Pa geIndexChanging
lblColorID.Text = ?
End Sub
What is the equivalent to the Grid view
I tried: lblColorID.Text = Me.DetailsView1 .FindControl("C olorID").ID
but no luck
Thanks,
Ed Dror
I'm using asp.net 2.0 vb
And I wrote this
Protected Sub GridView1_Selec tedIndexChanged (ByVal sender As Object, ByVal e
As System.EventArg s) Handles GridView1.Selec tedIndexChanged
txtGNID.Text = Me.GridView1.Se lectedRow.Cells (1).Text
End Sub
Every time when I slecet row my text box will show the selected cell value
(in this case is my VendorID)
Now I have a DetailsView
Protected Sub DetailsView1_Pa geIndexChanging (ByVal sender As Object, ByVal e
As System.Web.UI.W ebControls.Deta ilsViewPageEven tArgs) Handles
DetailsView1.Pa geIndexChanging
lblColorID.Text = ?
End Sub
What is the equivalent to the Grid view
I tried: lblColorID.Text = Me.DetailsView1 .FindControl("C olorID").ID
but no luck
Thanks,
Ed Dror