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
3166
Initialize column width to fit the column header
posted

I have an empty grid (no data). I want the grid column sized to just fit the headers. When I PeformAutoResize in my InitializeLayout there is still some padding space. How can I get rid of this padding?

I want the same behaviour as user would double click to fit to the width.

 

  • 469350
    Offline posted

    What kind of padding are you seeing?

    The PerformAutoResize method on the column gives you the same behavior as the user double-clicking on the edge of the column header - assuming you are passing in the correct parameters to the method.