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
790
UltraWinTree Image column
posted

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?

Parents
  • 660
    posted

    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

Reply Children