Hello, I want to add an image to an Ultra Grid control.
In .NET the dataGridView does not allow for this. The way we handled it was that we added to the CellPaintEvent. We then tested if the Row & Col were = to -1. We then manually painted the image to the header.
I do not see the CellPaintEvent in the Ultra Grid and I'm wondering if there is a similar event that I can use!?
Or perhaps the Ultra Grid allows for an easier method.
Thanks for your time.
Thanks for your prompt reply!!!! :) I have been using your Top of The Line Controls since Sheridan!!!! Best product on the market!!!!
Hi,
The column header only has built-in support for one image (and a background image). But if you wanted to put more images in there, you could do is by either combining your images into one big images, or else using a CreationFilter. Which one is easier depends on where you want the images to go and if they are all the same size. If you want a bunch of icons that are all the same size and all go on the same side of the text, then it's probably easiest to just combine your images into a single image programmatically. If you need images of different sizes or in multiple places, then the CreationFilter would allow more flexibility.
Is it possible to place more than one image on the Ultragrid Column Header?
Thanks, that's exactly what I was looking for.
What kind of header are you referring to? For a column header, you could do something like this:
column.header.Appearance.Image = myImage;