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.

ComboBox exclusive drop down on cell selection

Thread ID:

Created:

Updated:

Platform:

Replies:

56378 Feb 14,2007 05:23 AM Feb 14,2007 10:53 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 14, 2007 05:23 AM

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

Administrator [Syncfusion]
Replied On February 14, 2007 10:53 AM

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

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.

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.

;