Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
546
UltraTextEditor as Cell-Editor
posted

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

Parents
No Data
Reply Children