i have object from class like this :
class student
{
private int st_ID;
private string name ;
private material[ mt;
}
class material
private int mt_ID;
private mark[ mk;
class mark
private int mk_ID;
now i recive object from student like this :
student [ ] std = new student[ ] { };
what i need to disblay in tree :
1- in first level the student name
2-in second level the material
3 in thired level the mark
remark : may be the student have mark may be not and may be have material and my be not
My properties are public and they are not members.
No, I am not creating any ColumnSets.
I have changed the ultra tree view style to Grid.
Yes, I am leaving the tree to it's default settings.
This seems like it should work, as long as the properties you are referring to here are properties (not just members) and that they are public.
Are you creating any ColumnSets in the tree yourself? Or are you just leaving the tree to it's default settings and letting it create the ColumnSets automatically?
What exactly are you seeing in the tree? Which columns do you get?
I am very new to Infragistics and I have tried to to bind my data structure List<T> to WinTree control. WinTree does not display the hierarchical structure of my data.
My classes hierarchies are:
BaseConfiguration class has public Property to Set/Get Name as string
ConfigurationAttribute class has public Property to Set/Get Name as string and Value as string
ConfigurationElement class is a sub class of BaseConfiguration. It has public Property to Get List<ConfigurationAttribute> AttributeCollection
ConfigurationSection class is a subclass of BaseConfiguration. It has public Property to Get List<ConfigurationElement> GetConfigSectionCollection
ConfigurationSection
config = new ConfigurationSection();
config = xmlParser.Parse(readerType); // populate hierarchy data structure
UltraTree.DataSource = config.GetConfigSectionCollection;
Hi Kumar,
I answered that question here: Setting the key of Node by databinding - Infragistics Community
Hi Mike,
This is very good Post.
In your Sample code, the 'Name' property of TreeListItem Object is binded to 'Text' Property of the Node in UltraTree. How to Set 'Key' Property of the Node of UltraTree using BindingList?
Thanks in advance,
Kumar