Hi,
I have a data source which is a BindingList<Project> where Project is a class containing a Parent and a Children properties (as well as other properties like Id, Name, Description etc). The Parent property is of type Project and the Children property is of type BindingList<Project>. Suppose i don't know in advance the depth of this hierarchy, how can i configure the GridView to display it right? I couldn't find any useful demo, are there any that concern my issue?
Thanks ahead,
Uri
---------------------------------------------------
I figured it out!
I've added a ParentId property to the Project class and added a self reference to the gridview's relations collection:
this.radGridView1.Relations.AddSelfReference(this.radGridView1.MasterTemplate, "Id", "ParentId");
I have a data source which is a BindingList<Project> where Project is a class containing a Parent and a Children properties (as well as other properties like Id, Name, Description etc). The Parent property is of type Project and the Children property is of type BindingList<Project>. Suppose i don't know in advance the depth of this hierarchy, how can i configure the GridView to display it right? I couldn't find any useful demo, are there any that concern my issue?
Thanks ahead,
Uri
---------------------------------------------------
I figured it out!
I've added a ParentId property to the Project class and added a self reference to the gridview's relations collection:
this.radGridView1.Relations.AddSelfReference(this.radGridView1.MasterTemplate, "Id", "ParentId");