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