I need to make the grid caption 40 pixels tall. How do I go about doing that? I can't seem to find the setting anywhere.
Oh, yeah, you can definitely create a Bitmap in code and fill it with Color.Transparent. :)
I was just going to dynamically generate the image using the backcolor of the caption, but if the image drawing code supports transparent images, that's a better solution.
Hi Pete,
pdavis68 said:Do you see any problems with that?
No, that's exactly what I was going to suggest.
Although personally, I would use a Transparent image rather than using the header BackColor. He color might not be the same on every machine.
Mike,
I want to draw an image in the caption. I know you can use the Image property, but I'd like to have finer control over the exact placement of the image than the control gives.
As a workaround I guess I can put in an image with the caption's background color and height (maybe 1px wide) I need. That will force the caption to the height I need and then I can paint my image where I want.
Do you see any problems with that?
Pete
Hi,
I don't think you can explicitly set the height of the caption.The caption height is calculated automatically based on the contents.
Why do you want it to be exactly 40 pixels?
You might be able to achieve what you need by adjusting the caption appearance and changing the size of the font or maybe adding an image - thought I am not sure the grid caption support images.