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
410
Resize columns incl. the header
posted
HI

I want to resize a column so that all data is seen without truncation, but I
want to include the column header in the resize. I know ResizeAllColumns,
but this will not include the column header.

Thanks
Michael
Parents
No Data
Reply
  • 37774
    posted

     Michael,

    There is an overload on the column's PerformAutoResize method that takes a boolean for whether to include the header in the resizing logic:

     this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].PerformAutoResize(PerformAutoSizeType.AllRowsInBand, true);

    -Matt 

Children