>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement