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. Image for the cookie policy date

Clearing comobox cells dropdown when clicking on the grid

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

1 Reply

AD Administrator Syncfusion Team 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);
}

Loader.
Live Chat Icon For mobile
Up arrow icon