We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Clearing comobox cells dropdown when clicking on the grid

Thread ID:

Created:

Updated:

Platform:

Replies:

19766 Oct 4,2004 11:10 AM UTC Oct 4,2004 11:40 AM UTC Windows Forms 1
loading
Tags: GridControl
Gordon Rhea
Asked On October 4, 2004 11:10 AM UTC

Hi, I''ve got a grid control that has some combo boxes. If the user opens the drop down on the combo boxes and changes their mind they either have to click on a different cell or off the grid entirely. If the user clicks on a part of the grid control that isn''t populated with cells the drop down won''t close. How can I force the drop down to close when the user clicks on the empty space in the grid control? Thanks, Gordon

Administrator [Syncfusion]
Replied On October 4, 2004 11:40 AM UTC

They can also press the escape key to close the dropdown. If you want to close it if the user clicks the grid outside the area occupied by cells or scrollbars, you can listed for the grid.Click event.
private void gridControl1_Click(object sender, EventArgs e)
{
	this.gridControl1.CurrentCell.CloseDropDown(Syncfusion.Windows.Forms.PopupCloseType.Canceled);
}

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;