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
close icon

Combobox items disappear

Hi,

I am currently working with Syncfusion 3.3. I have a GDBG and with a column of comboboxes. Each combobox gets it's ListBoxPart dynamically populated by the CurrentCellShowingDropDown event. Everything seems to be working properly except when a user clicks on the same cell that is already showing the dropdownlist. For some reason, the dropdownlist becomes entirely blank. Is there some other event I need to handle in order to avoid this situation?

Regards,
Brian

2 Replies

AD Administrator Syncfusion Team December 11, 2006 09:54 PM UTC

Hi Brian,

Please try the code below in the CellClick event of the grid to avoid this problem.

private void gridDataBoundGrid1_CellClick(object sender, GridCellClickEventArgs e)
{
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
if(cc.IsDroppedDown)
{
cc.CloseDropDown(Syncfusion.Windows.Forms.PopupCloseType.Canceled);
cc.ShowDropDown();
e.Cancel = true;
}
}

Let us know if this helps.
Regards,
Rajagopal


BS Brian Schlatter December 11, 2006 11:00 PM UTC

Works great, thanks Rajagopal.

Loader.
Live Chat Icon For mobile
Up arrow icon