I added DropDownEditorButton to ButtonsRight of my cell editor. When I have my CellClick action set to default it works just fine and drops down my control. If I set CellClick action to CellSelect I can still see drop down button in my cell but it no longer responds to my mouse clicks. I have other cells where I added ValueLists and these cells work correctly (they drop down their lists) even when CellClick is set to CellSelect.
Why does DropDownEditorButton behaves differently from simple ValueLists? Bug? How do I make my DropDownEditorButton drop down in CellSelect mode?
Thanks,
Lev
Ditto my prev message about Mike's reply
Found Mike's response to an old forum message that resolves the issue. Posting here to help other poor souls with the same problem who might stumble upon this thread. Still would be nice to see it fixed in the next release ;)
private void ultraGrid1_MouseDown(object sender, MouseEventArgs e) { UltraGrid grid = (UltraGrid)sender; EditorButtonUIElement editorButtonUIElement = grid.DisplayLayout.UIElement.LastElementEntered as EditorButtonUIElement; if (editorButtonUIElement != null) { DropDownEditorButton dropDownEditorButton = editorButtonUIElement.GetContext(typeof(DropDownEditorButton)) as DropDownEditorButton; if (dropDownEditorButton != null) { if (!dropDownEditorButton.IsDroppedDown) { grid.PerformAction(UltraGridAction.EnterEditMode); dropDownEditorButton.DropDown(); } } } }