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()
grid.ActiveCell.EditorComponentResolved.Focus
same result
any advice would be greatly apprciated
Mendel
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.
I'm well aware of the ultra combo, but since I needed the Filter UI Row in the grid which cannot be accomplished with an ultra combo [as far as I can tell].
So I hid the drop-down button added my DropDownEditorButton, the user hits this drop-down, then he can filter within inside the grid drop down in any column...it works beautifully...