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
1935
UltraTree - "display member" property?
posted

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));

Parents Reply Children
No Data