I enclose a sample.
My question should be pretty simple to datasource master but I'm quite a newbie in datasource world :)
I've a business object A that is composed of List<B> and List<C> nested objects and an Id property. When binded as datasource, I can see only A as a column of the Ultracombo (seems logical).
I though I would see other bands to display List<B> and list<C> but it does not appear. I don't know how to retrieve the list from the selected row (as I can't use SelectedRow.Cells[columnName].Value as it doesn't appear as a column.
How do you proceed to retrieve the other parts of a "complex" object that has been loaded into a datasource and selected in the combo ?
Thanks for your tips :)
shame on me :)
Didn't saw this one. Thanks a lot (I just spent half a day finding a way to stock the object in the Tag property of each row but it was provided "out of the box" !)
Thanks again for your answer.
You could handle (for example) the ValueChanged event, get a reference to the underlying list object from the selected row's ListObject property, then upcast to the type of your business object:
Example:void ultraCombo1_ValueChanged(object sender, EventArgs e){ UltraCombo combo = sender as UltraCombo; UltraGridRow selectedRow = combo != null ? combo.SelectedRow : null; if ( selectedRow != null ) { A objectA = selectedRow.ListObject as A; }}