Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
How to display tree view using xamdatagrid.
posted

I have a sample class which contains the self relationship as follws.

 

 

 

 

 

 

 

 

 

public class person : INotifyPropertyChanged {

private string  _Fname;
private string  _Lname;
private int  _Age;
private bool _IsMarried;
private DateTime _Birthdate;
private int  _ID;
private int  _ParentId;

--------------------- and so on. My _ParentId contains the ID of the Parent Person ID. typically one person can have one or no parent.

Can you please suggest how to achieve this. I want this to be displayed as the treeview grid.

Regards
kishor