Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
370
How to change wingrid column header cell margin or inner padding?
posted

Cannot seem to find any options to change column header cell margin or inner padding, was surprised not to find anything of forums as well, must be too basic?!

Looks likes dgAccounts.DisplayLayout.Override.CellPadding / dgAccounts.DisplayLayout.Bands[0].Override.CellPadding applies to all cells including header cells - that's too weird

Am I missing something?

I need to  be able to change the header cell padding so that the filter icon, sort icon and the header caption itself, space out a little bit and are well readable

http://help.infragistics.com/Help/Doc/WinForms/2013.1/CLR4.0/html/Infragistics4.Win.UltraWinSchedule.v13.1~Infragistics.Win.UltraWinSchedule.Owner~HeaderAppearance.html

http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/HTML/Infragistics4.Win.UltraWinGrid.v12.2~Infragistics.Win.UltraWinGrid.UltraGridLayout~CaptionAppearance.html

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Ameya,

    The reason you can't find it is because the grid has no such functionality. There is no equivalent header padding like CellPadding.

    You could probably achieve what you want using a CreationFilter, though. It depends on eactly what you want to do, though. You can adjust the width of the column to get some extra horizontal space in the column headers. Vertical space would be a bit trickier. You might have to use a RowLayout or set the ColHeaderLines if you need more vertical space.

    The CreationFilter could then arrange the UIElements inside the header however you like.

Reply Children