Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Key Of Selected Combo Item
Message
From
05/11/2008 19:45:24
John Baird
Coatesville, Pennsylvania, 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:
01360017
Views:
15
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform