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

filterbox does not close when next click is in locked cell.

Hi, if any combobox dropdown and the next click is in a locked cell (gbc.StyleInfo.Enabled = false;) the filterbox will not close. The filterbox only will close when the next click is in a editable cell. Is it possible to close comboboxes when no entry in the box is selected and the next click is in a locked cell? thanks markus

2 Replies

AD Administrator Syncfusion Team September 9, 2003 01:56 AM

This behavior is by design. Clicking a disabled cell does not change the current state of teh grid. If you want to close the dropdown, then I think you can explicitly do it in GridControlMouseDown.
private void gridDataBoundGrid1_GridControlMouseDown(object sender, Syncfusion.Windows.Forms.CancelMouseEventArgs e)
{
	int row, col;
	Point pt = new Point(e.MouseEventArgs.X, e.MouseEventArgs.Y);
	if(this.gridDataBoundGrid1.PointToRowCol(pt, out row, out col, -1)) 
	{
		GridStyleInfo style = this.gridDataBoundGrid1[row, col];
		if(!style.Enabled)
		{
			GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
			if(cc.RowIndex == 1)
				cc.CloseDropDown(Syncfusion.Windows.Forms.PopupCloseType.Canceled);
		}
	}
}


MK Markus Kraft September 9, 2003 03:06 AM

thanks it works well

Loader.
Live Chat Icon For mobile
Up arrow icon