I'd like to add a Column for an image, but the column is always added to the end of the columns. How do I add the column as the first column?
After you add the column, you can set move it to the beginning like so:
column.Header.VisiblePosition = 0;
What is a "column"? I can't find the Header property anywhere in the UltraTree object model.
For example, UltraTree.ColumnSet.Columns[0].Header doesn't exist.
Oops. Sorry, I was thinking you were using WinGrid instead of WinTree. :)
So I assume you are adding your unbound column in the ColumnSetGenerated event. The tree uses a GridBagLayout for it's nodes. So you would do something like this:
column.LayoutInfo.OriginX = 0;
That works great. My images have a shadow? Where is the property to turn off the shadow?
What images are you referring to?
If you have a column with image values and you are using an EmbeddableImageRenderer to display the cell value as an image, then I think the EmbeddableImageRenderer shows the shadow by default. But I'm sure there's a property on the EmbeddableImageRenderer to turn it off.
Yes, I found the property. It's the DrawBorderShadow = False property. I didn't see the property before because I didn't cast the Editor as an EmbeddableImageRenderer.