views:

193

answers:

1

I have a business entity like so:

public class Entity
{
    public string Name;
    public string Description;
    public Entity Parent;
    public ObservableCollection<Entity> Children
}

I would like to bind a ListView to a collection of Enities and get a nested table out of it like this:

http://leeontech.wordpress.com/2008/03/11/listview-masterdetail/

however I would like the nested table (which has the same columns as its parent) to position and resize its columns the same as the parent table. How can I do this?

A: 

you might want to check if treeview would work for you; there are ways of making it multi column (TreeListView). Check if example here: TreeListView Sample would work for you. Should be looking like a control on the picture below:

alt text

source code for the control on the picture you can find here

serge_gubenko