I'm using linq to pull back an object (i.e. customer) that might have a collection of other objects(customer.orders). I would be nice if I can pass this list of customers to the ultragrid and a hierarchical view of customers and thier orders displayed on databind. When I try this, I just get customers. Anyone know how to get this to work with non dataset objects?
Asked
Active
Viewed 1.3k times
3 Answers
8
Figured it out. IList collection works and will create bands for properties of your domain object if it is an IList<T>
. Just make sure thatDisplayLayout.ViewStyle = ViewStyle.MultiBand
.

Jeff B
- 8,572
- 17
- 61
- 140

Bless Yahu
- 1,331
- 1
- 12
- 25
-
This solved a similar problem for me with a dataset with nested List collections, so +1 from me. – Rob Cowell Oct 30 '09 at 16:46
0
We work with our own custom datasource for grid, so we first create a structure of bands and then we initialize data OnDemand, handling events InitializeDataRow InitializeRowsCollection CellDataRequested
We use Tags to navigate through the structure.

Massimiliano
- 16,770
- 10
- 69
- 112