Hello,
I have a problem.
I have created a custom class with a method that retrieves some data and puts it in a list, that list is returned and i have assigned this list as the datasource for the ultrawintree.
In my custom class i have created an Image property, which returns a default image. It is needed that the ultrawintree shows this column as an image. But instead of showing the image it shows "System.Drawing.Image".
I have tried to set the datatype of the column to typeof image, but no luck.
Can somebody help me with this?
Don't set the .Value of that cell but instead use the image property of the cell.
Example:
node.Cells[SomeKey].Appearance.Image = imageList2.Images["SomeImage"];
hope that helps
Hmm, i dont fully understand it.
i have a public class (MyClass)
in that class i have set some public properties
public Image DataType {get;set;}
public string Name {get;set;}
public int ID {get;set;}
I have a list with the type of this class and this list is bound to my datasource. So the columns that it will show are these 3 properties shown above. Everything is being shown fine, but the Image property isnt.
Suppose that i have another class MyClass2, this class also contains a property Datatype of type image, i want a different image for items of this class. btw MyClass contains a also a list of type MyClass2, so this can be seen as a childrenslist.
Isnt it possible that that ultratree uses the imagevalue that i have set for each class in the column DataType?