Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine Key Of Selected Combo Item
Message
De
05/11/2008 19:45:24
John Baird
Coatesville, Pennsylvanie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01360014
Message ID:
01360017
Vues:
14
>I have a combo bound to a data set. The first column of the data set it the PK.
>
>When the user selects an item, how do I determine the PK of the selected item?

use the selectedIndex to determine which row your on...then use that as the index in your DataRow[selectedIndex][whichcolumn] to get the pk.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform