Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieve value from DataGrid
Message
De
20/07/2005 09:02:46
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01033212
Message ID:
01034218
Vues:
21
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform