gridcontrollist hides when clicking on row/header in cell

Hello,

if the dropdown from a gridcontrolist celltype in a gridcontrol appears, the dropdown hides immediately after clicking on a header/row. Is it possible to keep the dropdown open, even if i click on a row/header? Thanks!

Tim.


1 Reply

AD Administrator Syncfusion Team March 25, 2008 05:13 PM UTC

Hi Tim,

Thank you for your patience.

Is it possible to keep the dropdown open, even if i click on a row/header?
>>>>
You need to handle BeforeCloseUp event of the PopupControlContainer and set the e.cancel=true to keep the dropdown open even after you clicked the other cell.Please refer the code below for more details.


void gridGroupingControl1_TableControlCurrentCellShowingDropDown(object sender, GridTableControlCurrentCellShowingDropDownEventArgs e)
{
GridDropDownGridListControlCellRenderer cr = (GridDropDownGridListControlCellRenderer)this.gridGroupingControl1.TableControl.CellRenderers["GridListControl"];
if (cr != null)
{
cr.PopupControlContainer.BeforeCloseUp += new CancelEventHandler(PopupControlContainer_BeforeCloseUp);
}
}
void PopupControlContainer_BeforeCloseUp(object sender, CancelEventArgs e)
{
e.Cancel = true;
}


Please let me know if this helps.

Best Regards,
Srirajan



Loader.
Up arrow icon