Can I set a left margin for the Column Header Text? A bit like the CellPadding?
Roles sticks to the Line ;-)
Thank you for posting on our forums.
Adding left margin for column header text is previously answered here:
As an alternative to CreationFilter you can also add empty spaces in front of the Column.Header.Caption to achieve this.
Please let me know if you have any questions.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
I really have little experience yet with these CreationFilters. Could you help me out?
I've found that CellPadding on the UltraGrid does work, so luckily no CreationFilter need for that.
Maybe the same CreationFilter could be used as my question in thread https://www.infragistics.com/community/forums/p/111189/522289.aspx#522289 ?
Kind regards and thx for the help!
Could you have a look at this. I would like to avoid having to put a 'space' before the text.
Thx, Lieven Cardoen
I'm a bit confused about what you are asking. You could, in theory, use a CreationFilter to create a little extra space between the left edge of the header and the text. But that's probably not ideal, because CreationFilters operate at the rendering layer - they affect the drawing and hit-testing, but not the control's metrics. This means that you could shift the text, but the AutoSize logic (when the user double-clicks on the right edge of the column) doesn't know you moved the text, so it would end up getting clipped.
Manager - Windows Forms Development