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
880
Auto-resizing all columns but one
posted

Hi,

I'm calling DisplayLayout.PerformAutoResizeColumns to auto-resize the columns in my grid, which was fine until I had a single column that I didn't want to be auto-resized (it still needs to be manually resizable).

I set AutoResizeMode to None on the column but PerformAutoResizeColumns still auto resizes it.

Is there anyway to persuade it to skip a column when auto-resizing or do I have to change it to auto-resize on a column by column basis?

Thanks,

John.

 

Parents
No Data
Reply
  • 69832
    Verified Answer
    Offline posted

    One solution would be to iterate the columns collection and call PerformAutoResize on all columns except the one you want to exclude.

Children
No Data