Autofit on columns by code

Posted by: ykeruzec on 10 September 2017, 10:57 am EST

  • Posted 10 September 2017, 10:57 am EST

    Hello,

      Does someone know if there's a way to trigger the autofit function on a column (or all columns) by code ?

     I want to apply it before showing the data to the user.

     

    Thanks,

    Yoann

  • Replied 10 September 2017, 10:57 am EST

    Yoann,

    You can use the AutoFitColumn method. For example...

    gcSpreadSheet1.AutoFitColumn(0);

  • Replied 10 September 2017, 10:57 am EST

    Hello,

      Thanks a lot, I have not find this method while looking at the autofit topic in the documentation.

     This works perfectly.

     Yoann

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels