Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Key Of Selected Combo Item
Message
From
06/11/2008 08:24:27
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01360014
Message ID:
01360129
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform