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.
Regardskishor
I am not sure this is possible without re-templating the expansion indicator. The minus sign is used when the record is expanded and not when the records has not child records.
Hi Alex ,
Thankyou for your response but its not working when i set
ExpansionIndicatorDisplayMode
="CheckOnDisplay" it hides all the "+" mark and i couldn't expand the records.All I want to do is to display "+" mark on the record which has child node and no symbol or "-" symbol for the record which doesn't have child nodes.
You can set the ExpansionIndicatorDisplayMode property of the FieldLayoutSettings to CheckOnDisplay.
Hi kishor
Did u find a way to remove "+" symbol from row which doesn't have child node
Hi,This makes + sign to appear conditionally. but there is problem in displaying the records.It displays ID below the + sign when expanded. Id is of a self not of a chield. and chield record is not there it is visible some where else in the grid.
For more information you can see the silverlight example of grid where finincial data has been displayed.