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
345
Best approach to display hierarchical data in combo
posted

We have a combo that is bound to a generics list of a business object.  For example we will call this buisness object 'Section.'  Section object has a child property called 'DataElements' - this is the object we would like to select on the index change of the combo.  We are hoping to achieve something like the following for the appearance of the drop down:

Section 1

Data Element 1

Data Element 2

Section 2

Data Element 1

Data Element 2

Data Element 3

Is it possible to achieve this using the combo?  if not what is a good alternative to show the data in this format?

  • 469350
    Verified Answer
    Offline posted

    You can't do this with UltraCombo, it has no support for hierarchical data. What you could do, though, is create your own combo. It's a lot easier than it sounds.

    Check out this forum post. It's not doing exactly what you want, but it basically demonstrates how to create a combo with the control of your choice as the dropdown. In your case, you probably want to use an UltraWinGrid or maybe an UltraWinTree as the dropdown, since these controls both support the display of hierarchical data.

    UltraComboEditor - Can I Use a Custom Control for the DropDown? - Infragistics Community