This is a migrated thread and some comments may be shown as answers.

[Solved] How to bind a class to TreeView control

1 Answer 59 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Syam Nair
Top achievements
Rank 1
Syam Nair asked on 04 May 2010, 06:06 AM
Hi
i am using the TreeView control for displaying reportee structure. I am using my class object to get the data.

how to bind this class object to TreeView control? my tree view should look like this:

. Employee 1
......Employee 2
............Employee 21
............Employee 22
......Employee 3
............Employee 31
............Employee 32
......Employee 4

please help me to resolve this.
class structure:
public class Reportee 
    public string ID; 
    public string Name; 
    public List<Reportee> SubReportees; 
}

1 Answer, 1 is accepted

Sort by
0
Dave
Top achievements
Rank 1
answered on 06 May 2010, 10:33 AM
Hi All, i need to know the same thing.

I allready looked at the checkbox example but i cant get a "mappings.FOR" .. ?

BindTo(Model as IEnumerable<Person>, mappings =>
        {
            mappings.For..

I use version 2010.1.416


Tags
TreeView
Asked by
Syam Nair
Top achievements
Rank 1
Answers by
Dave
Top achievements
Rank 1
Share this question
or