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
460
call DropDown() of DropDownEditorButton
posted

I'm using an UltraComboEditor as my EditorComponent for a particular column in my UltraGrid,

I added a DropDownEditorButton to the ButtonsRight collection of the UltraComboEditor

(the control the DropDownEditor is associated to, happens to be is an UltraGrid, but I don't think it should matter)

I'd like when the user clicks on the text area of the cell of that particular column, i'd like the the DropDownEditor should drop down.

I tried running this line of code in the grid.CellClick or grid.AfterEnterEditMode or grid.DoubleClickRow

DirectCast(grid.ActiveCell.EditorComponentResolved,UltraComboEditor).ButtonsRight("myBotton").DropDown()

and it keeps throwing this exception:

The associated editor must be in edit mode to be dropped down

I tried preceding any of the following:

grid.PerformAction(EnterEditMode)

or

grid.ActiveCell.EditorResolved.Focus()

or

grid.ActiveCell.EditorComponentResolved.Focus

same result

 

any advice would be greatly apprciated

 

Mendel

Parents
No Data
Reply
  • 48586
    Suggested Answer
    posted

    Hello ,

     

    If you want to display a UltraGrid as DropDown of column’s editor I suggest you to use UltraCombo instead. If I am understand you correctly there is no need to add  an editor button in ButtonRights collection. Base on description of your scenario I have created a small sample to achieve your goal. Please run the sample and let me know if this is what you are looking for.

     

    I am waiting for your response.

    WinGridDropDownVB.zip
Children