I'm using Net Advantage 8.2 Volume 2 CLR 2.0 WinGrid control. I just want to add a cellpadding to the column headers but I don't see a property for it. The data rows are fine but the text in the column headers need additonal padding on both sides of the text.
Hi,
There's no CellPadding equivalent for the headers in the normal Groups and Levels mode. If you use RowLayouts, though, you can add padding using the CellInsets and Labelnsets on the RowLayoutColumnInfo.
So nothing in the DrawFilter available? It looks like the default cell padding is about 4 pixels on the left but if you left justify the column header the default is about 2 pixels which makes it visually too close to the header cell border. Les
I figured out how to do it using a CreationFilter to grab the HeaderUIElement and TextUIElement and shift the rect a couple more pixels. Les
A CreationFilter is a good way to do it. The only down side is that the AutoSize on the column (when you double-click the right edge of the column header) will not account for this.