ComboBox exclusive drop down on cell selection

Hi

When a ComboBox cell has its DropDownStyle set to Exclusive as soon as the cell is selected, the drop down appears.

Is there a way to stop this?

Cheers
Steve

1 Reply

AD Administrator Syncfusion Team February 14, 2007 03:53 PM UTC

Hi Steve,

You can handle the CurrentCellShowingDropDown event of the grid and set e.Cancel to true for cancel the dropdown. Here is a code snippet.

private void gridDataBoundGrid1_CurrentCellShowingDropDown(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellShowingDropDownEventArgs e)
{
GridCurrentCell cc = (sender as GridDataBoundGrid).CurrentCell;
GridComboBoxCellRenderer cr = cc.Renderer as GridComboBoxCellRenderer;
if( cr != null )
e.Cancel = true;
}

Best Regards,
Haneef

Loader.
Up arrow icon