Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine Key Of Selected Combo Item
Message
De
06/11/2008 08:24:27
Timothy Bryan
Sharpline Consultants
Conroe, Texas, É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:
01360129
Vues:
11
Hi Kevin,

>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?

I was under the impression if you set the ValueMember property to something say your PK, then you should be able to retrieve it with Combobox1.SelectedValue.

Are you displaying the PK? What type of data is that?
Tim
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform