Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox - Datagridview
Message
De
14/06/2006 00:29:54
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Combobox - Datagridview
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01128896
Message ID:
01128896
Vues:
72
I have a combo box in the first column of a Datagridview. The displaymember is the inventory item key. I set the selectedvalue to the item description.

I have an event for "OnEditControlShowing" of the grid that checks to see if I'm on the combobox column, and if so, checks the selectedvalue to make sure it's not null. If both these tests pass, it wires up an event to the selectedchange on the combobox. This event populates the 2nd column with the selectedvalue of the combobox.

Problem #1, I have to click on the combo twice to get it to drop down.

Problem #2, there is no problem on the first row, but when I click on the combo and get it to dropdown on rows after the first one, the description displays "System.Data.DataRowView". How can I trap for this value so it doesn't display?

Thanks,

PF

(On an infant's shirt): Already smarter than Bush
Répondre
Fil
Voir

Click here to load this message in the networking platform