PC Review


Reply
Thread Tools Rate Thread

Combo box in DataGridView

 
 
pf
Guest
Posts: n/a
 
      15th Jun 2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DatagridView Combo Box Luigi Audasso Microsoft C# .NET 0 8th Aug 2007 11:27 AM
How to access combo box properties of DataGridView combo column Steve Marshall Microsoft Dot NET Framework Forms 2 26th Jun 2007 01:56 PM
datagridview combo box =?Utf-8?B?Y3RrX2F0?= Microsoft VB .NET 2 11th Mar 2006 10:55 PM
Re: DataGridView combo box Peter Microsoft Dot NET Framework Forms 0 7th Mar 2006 01:01 AM
DataGridView combo box Mark Rendle Microsoft Dot NET Framework Forms 1 23rd Jan 2006 04:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:44 PM.