Is it possible for the UltraDropDown to show hierarchical data in bands? I see the setup for the child bands but when I have a data set with a relationship of parent and child rows, I only get the parent row with no way of getting to any children.
Any insight would be great.
Hi Gary,
No, UltraDropDown does not support hierarchical data.
If you want to create your own dropdown that supports this, it's probably not as complicated as you might think. What you do is start with an UltraTextEditor and an UltraWinGrid. Use the ButtonsRight collection on the UltraTextEditor and add a DropDownEditorButton and set the Control property of the button to the grid. Presto, instant dropdown grid control. You can even use it in a grid cell by assigning the EditorControl property of the grid column to the UltraTextEditor.
Then you just have to handle events like BeforeEditorButtonDropDown (to select the appropriate item on the list) and some events of the dropdown grid to handle what happens when the user picks a row.
Well, I temporarily had another work around and didn't need to address this, so I had filed this under "cool but I don't need it". However, it ends up I now need it but with a little more. Your directions in the previous post were right on except what I need actually changed. I've followed your instructions and I wired up an UltraTree (not a grid) so I can have a drop down in a parent grid that shows a tree.
This was very cool and simple to do. However, I need a little advice on the finishing touches. I need to know how to force the selection when you click on a leaf node. I'm checking the leaf node stuff in my "BeforeActive" code, but I don't know how to tell the tree and dropdown to go away because a selection was made.
I appreciate your help and advice. This stuff does way more than I anticipated and is way cool.
Hehe. No problem.
Ok, you don't have to answer this one. I found the "Editor Buttons" sample that does almost exactly what I want, embedding a tree control in a combo of some sort. This appears to have answered all of my questions. Guess I ought to do a little research first next time.