views:

1307

answers:

2

Hi, I know there must be a way to do this, and perhaps someone has already done it. I googled like crazy but found nothing at all. Anyway, what I want to do is have a TreeView in the first column of a GridView using WPF, which can expand and collapse and that will show/hide the row it belongs to, pretty much something like this (the demo is for ASP.NET, I want to be able to do the same in WPF):

DevExpress demo

In our company we bought Infragistics controls, but it doesn't have a built in solution, we're trying to avoid spending a lot of time coding this solution.

Thank you!

A: 

Infragistics support similar scenario, see their overview - for WinTree control.

They can also do this for grids (see under Hierarchical display).

Michał Chaniewski
Thanks for the suggestion, but that's for Windows Forms, I'm using WPF.
Carlo
ouch, didn't notice that - the only place you say it, is tags...
Michał Chaniewski
You're right I should've specified in the question. Thanks.
Carlo
+1  A: 

Perhaps you're not using the right search terms... IMO, what you're actually looking for is not a GridView with a TreeView inside it, but rather a TreeView with columns.

Here are a some samples of TreeViews with columns (often called TreeList or TreeListView) :

Thomas Levesque
That sounds about right, I think the second link will work for me. I will test it during the course of the day and let you know if it worked. Thanks.
Carlo
It worked, Thanks!
Carlo