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.