Hi,
I have an UltraTextEditor set as Editor for a Cell in an UltraWinGrid. This UltraTextEditor has another UltraWinGrid assigned to its ButtonsRight like so:
DropDownEditorButton button = new DropDownEditorButton();button.Control = myUserGrid;textUsers.ButtonsRight.Add(button);
I need this special setup for a behavior that wouldn't be possible with just the grid cell.
The UltraTextEditor doesn't accept any direct input and it's value is filled by selections made from its DropDown grid.
I would like the grid to drop down as soon as the user clicks on the cell (of which the UltraTextEditor is the Editor) of the main grid.
I've tried the AfterEnterEditMode event of the main grid like so:
private void myMailingGrid_AfterEnterEditMode(object sender, EventArgs e) { if (myMailingGrid.ActiveCell.Column.Key == "Users") { DropDownEditorButton button = (DropDownEditorButton)textUsers.ButtonsRight[0]; if (button.Editor.IsInEditMode) button.DropDown(); } }
But the button is never in EditMode. Therefore I can't call it's DropDown method.
Any suggestions?
Thanx
Thank you Mike! As always you have been a great help!
The same question is discussed here:
Dropdown editor and container control for UltraGrid - Infragistics Community