Hi,
I have a tree with ViewStyle = Infragistics.Win.UltraWinTree.ViewStyle.Standard;
the datasource is a self referancing table, which i found how to bind properly here :
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=10084
how do i set the "display member" ? because the ViewStyle is Standard then the node text is the first column of the data table / data source. of course i can controll the way i bring the data and put the column i want to display first and then all the rest but i was just wondering if i can set it in the properties somehow?
i.e.This way it will work fine and display fine
dataTable.Columns.Add(
"Name", typeof(string)); dataTable.Columns.Add("managerID", typeof(int));dataTable.Columns.Add("ID",typeof(int));
but this way it will show me the managerID as the node text. dataTable.Columns.Add("managerID", typeof(int));dataTable.Columns.Add("ID",typeof(int)); dataTable.Columns.Add("Name", typeof(string));
What you are looking for is the NodeTextColumn property. This has been discussed a few times on these forums. Here's one:
Setting Text of the a Node in the Window Forms UltraWinTree - Infragistics Community
thanks Mike, i wasn't able to find it because i wasn't sure how to describe it correctly in the search