Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGridView ComboBox to show different data
Message
From
07/12/2006 09:38:35
Jeff Corder
Ambit Technologies, LLC
Missouri, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01175067
Message ID:
01175599
Views:
8
I understand how to add the Combo Box and data bind it. My problem is that the combo box for each row needs to show different data. One row may have units of measure of Each, Box and Dozen. The next row may have Each, Foot and Bundle. Base on the user's selection, I set the price for the item/unit of measure combination.

I have resorted to using an unbound combobox and adding the units of measure as a string when I validate the inventory item. I then combine the unit of measure and the primary key of the inventory item as a key to look up the data in a dictionary object containing data retrieved from the database when the item was selected. Not real elegant, but it does work.

Thanks,
Jeff
Previous
Reply
Map
View

Click here to load this message in the networking platform