Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping Record id
Message
From
07/03/2008 02:03:58
 
 
To
06/03/2008 10:49:27
General information
Forum:
ASP.NET
Category:
WebForms
Miscellaneous
Thread ID:
01299319
Message ID:
01299631
Views:
9
I needed to set the DataKeys property of my grid to the keyid of the underlying datasource. then I can get the value I want using

GridView1.SelectedDataKey.Value


>Hi
>
>I've got a grid on a webform. I'm using a Linqdatasource.
>
>The grid displays text items from the record but I want to trap the record id when a line is selected .
>
>I tried adding the record id to the grid as an invisible column but I don't get the record id then.
>
>Any suggestions on the best way to do this.
>
>
>Thanks
>
>
>Nick
Previous
Reply
Map
View

Click here to load this message in the networking platform