How do you get child groups in ultragrid without using linked tables in the dataset?

I use linq to return an object (i.e. a client) that may have a collection of other objects (customer.orders). It would be nice if I could transfer this list of customers to the ultra-degree and hierarchical form of customers and their orders displayed on the databind. When I try to do this, I just get customers. Does anyone know how to make this work with objects without data?

+5
source share
3 answers

Figured it out. The IList collection works and will create bands for the properties of your domain object, if any IList<T>. Just make sure DisplayLayout.ViewStyle = ViewStyle.MultiBand.

+7

, :

DisplayLayout.ViewStyle = ViewStyle.MultiBand

, List, IList, .

+1

We work with our own data source for grid, so we first create a group structure and then initialize the OnDemand data by processing the InitializeDataRow events InitializeRowsCollection CellDataRequested

We use tags to navigate the structure.

0
source

All Articles