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
195
Column With fits to contents
posted

Hi ALL

Does the windgrid has a property to set the column to fit to it contents?

I am using the autofree option to have text wrap, however others columns in the grid have very short contains like Status the column width for this column is much bigger than needed. I want to be able to set the column to fit to it contents

 Thanks

  • 469350
    Offline posted
        There's a PerformAutoResize method on the column which will size the column to its contents. Be sure to examine the various overloads of this method to be sure you are calling the right one.