Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trapping Record id
Message
De
07/03/2008 02:03:58
 
 
À
06/03/2008 10:49:27
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Divers
Thread ID:
01299319
Message ID:
01299631
Vues:
10
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform