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 Controls / August 2006

Tip: Looking for answers? Try searching our database.

Easier use of ComboBox in DataGridView?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Luis Navarro - 28 Aug 2006 21:44 GMT
I have a DataGridView with some ComboBox cells.  However, for the user to
access the ComboBox menu, they have to first select the cell, then click the
arrow button that displays the menu.  Having the user click twice seems a
little harsh.

Is there any way to set this up so that if the user has another cell
selected but then clicks on the arrow part of a ComboBox cell that this
action selects the cell AND displays the ComboBox menu?

Thanks in advance!
Linda Liu [MSFT] - 29 Aug 2006 02:48 GMT
Hi,

Only when a ComboBox cell is in edit mode and the user clicks on the arrow
button on the cell, the drop-down list appears.

DataGridView has a property named EditMode which indentifies the mode that
determines how cell editing is started. The default value of this property
is EditOnKeystrokeOrF2 which means if we press a key or F2 or click the
cell once again when the cell is selected, the cell will enter into edit
mode.

If you'd like to make the cell enter into edit mode when the cell is
selected, you could set the EditMode property to EditOnEnter. Thus, if the
user has another cell selected and then clicks on the arrow button of a
ComboBox cell, the ComboBox cell is selected and displays the drop-down
list.

Hope this helps.
If you have anything unclear, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Linda Liu [MSFT] - 31 Aug 2006 12:18 GMT
Hi,

How about the problem now?

If you need our further assistance, please feel free to tell us.

Thank you for using our MSDN Managed Newsgroup Support Service!

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

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.