Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataGridView ComboBox to show different data
Message
De
07/12/2006 09:38:35
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01175067
Message ID:
01175599
Vues:
9
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform