DataGrid: Does it support Heirarchical data display?

Feb 19, 2009 at 1:10 AM
I am looking for a low-cost/no costWPF DataGrid. which can display heirachical data.  Does the DataGrid included in the WPFToolKit support heirachical data display?

Feb 19, 2009 at 8:43 AM
Hi Tracy,

What do you mean by 'supports hierarchical data' ?

If it is simply a master / detail view, take a look at this:

The WPF DataGrid also has the concept of RowDetails:

You can nest whatever content you like within the row details. You could, for example nest a DataGrid within there, allowing you to drill-down on the current row.

Colin E.
-- - my WPF blog - WPF DataGrid Practical Examples

Feb 19, 2009 at 7:59 PM
Hi Colin.    I have a nested object heirarchy that could be multiple leves deep.  The separate master/detail grids are not what my functional folks are looking for.

Here is a  pseudo-code example of an object heirachy:
orders (collection)

orderDetails (collection)


When I retrieve an observableCollection of Customers, each customer object has a collection of orders...each order has a collection of order details.

When I bind the customer collection to the grid, I want to see expandable/nested order rows...and subsequently, each order row should house a nested set of detail rows.

Here is a link to an XAMDataGrid example:

It looks like the concept of RowDetails may work.  There doesn't seem to be much documentation on this grid though I would prefer to stay straight M$.  

Using the RowDetail approach, would I be able to do the following 
- Edit all different levels
- Trigger IDataErrorInfo

Appreciate your help with this!