Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / March 2006

Tip: Looking for answers? Try searching our database.

DataGridView combo box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Rendle - 23 Jan 2006 15:37 GMT
I've got a DataGridView with a combo box in one of the columns. As it
stands, the user has to click the dropdown button twice - once to focus the
cell, and again to drop down the list. I can't find any property to change
this behaviour, the EditingControlShowing event doesn't fire until they
click the dropdown button, and I can't find a property or method to get the
DataGridViewComboBoxEditingControl object outside of the
EditingControlShowing event.

So, does anyone know, how can I get the list portion to display the first
time the dropdown button is clicked?

Signature

----
Mark

Mark Rendle - 23 Jan 2006 16:43 GMT
This is insanely annoying.

I've added an event handler to the CellEnter event which calls BeginEdit,
which forces the EditingControlShowing event to fire. Then in the
EditingControlShowing handler, I'm setting the
DataGridViewComboBoxEditingControl.DroppedDown to true. This makes the list
portion appear, but it appears under the cell which previously had the
focus.

Signature

----
Mark

Peter - 07 Mar 2006 01:01 GMT
Mark Rendle wrote (Date:Tues, Jan 24 2006 1:37 am):
> I've got a DataGridView with a combo box in one of the columns. As it
> stands, the user has to click the dropdown button twice - once to focus the
[quoted text clipped - 6 lines]
> So, does anyone know, how can I get the list portion to display the first
> time the dropdown button is clicked?

This problem has obviously come up before but I cannot find a solution
- is anyone able to assist with this at all?

I currently have a datagridview with a combo box and when you select
from the combo box and then go to hit 'save' you have to click it twice
before it registers that it's been clicked...

Any help would be greatly appreciated.

Regards,

Peter

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.