Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieve value from DataGrid
Message
From
20/07/2005 09:02:46
Keith Payne
Technical Marketing Solutions
Florida, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01033212
Message ID:
01034218
Views:
22
This message has been marked as the solution to the initial question of the thread.
>I was reading on the web and found something about this. But it still has a weakness.
>
>I have to set the DataKeyField property of the datagrid to "ONE" of the bound columns, then I can refer to that value with the .DataKeys collection referring to the .SelectedIndex.
>
>But the weakness is still that i can only have one datakeyfield per grid, is there a way to have more than one?
>
>Any help would be appreciated.

Arnaldo,

You should add a computed column to the DataTable that combines the multi-column primary key into a single column.
Previous
Reply
Map
View

Click here to load this message in the networking platform