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 items disappear

Thread ID:

Created:

Updated:

Platform:

Replies:

53257 Dec 11,2006 12:40 PM Dec 11,2006 06:00 PM Windows Forms 2
loading
Tags: GridControl
Brian Schlatter
Asked On December 11, 2006 12:40 PM

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

Administrator [Syncfusion]
Replied On December 11, 2006 04:54 PM

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

Brian Schlatter
Replied On December 11, 2006 06:00 PM

Works great, thanks Rajagopal.

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.

;