Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gridview
Message
De
24/02/2006 08:36:51
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
23/02/2006 22:35:33
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
01098662
Message ID:
01098835
Vues:
9
Kevin,

Thanks, this worked perfectly!

Thanks,

Jerry


>Hi, Jerry
>
>There are probably a number of ways to handle this. Here's what I'm doing.
>
>In the ASP.NET GridView, there's a property called DataKeyNames. You can set that to your ID column name.
>
>In the gridview's SelectedIndexChanged event (which fires if you have any link or command button with a command name of "SELECT"), you can do this...
>
>
>int MyID = (int)this.grdThisWeek.SelectedDataKey.Values["MyIDColumn"];
>
>
>Let me know if that helps.
>
>Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform