Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox - Datagridview
Message
From
14/06/2006 00:29:54
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Combobox - Datagridview
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01128896
Message ID:
01128896
Views:
66
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
Reply
Map
View

Click here to load this message in the networking platform