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 06:56 AM UTC

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 08:06 AM UTC

thanks it works well

Loader.
Up arrow icon