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.
Syncfusion Feedback

Combobox items disappear

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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

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

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.

Warning Icon 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.Close Icon

;