I am filling a UltraWinGrid with a collection of Person Objects:
class Orders{// details}
class Person{ public string Name; public BindingList<Orders> orders;}
I would like to display the the customer's name and the number of orders in the UltraWinGrid. How do I go about doing that?
Sam
Sam,
The easiest way would be to simply add a property to the person class that returns the length/count of the items in the BindingList, which the grid should then pick up from the BindingManager. If that isn't an option, then you could add an unbound column to the grid and in the InitializeRow event, set the value of the cell in that column to the number of child rows (i.e. row.ChildBands[0].Rows.Count).
-Matt