Autosize column based on header and cell content

Posted by: peterlechner on 8 September 2017, 9:53 am EST

    • Post Options:
    • Link

    Posted 8 September 2017, 9:53 am EST

    Hello,

    is it possible to autosize the column width based on header and cell content?

    So if cell content is smaler then header, the column size should be based on the header width.

    Thanks, Peter

  • Posted 8 September 2017, 9:53 am EST

    Hello,

    You can also include the header text when using AutoFit with the autoFitType method.

    http://helpcentral.componentone.com/NetHelp/SpreadHClientUG/Spread~$.wijmo.wijspread.Spread~autoFitType.html

    Please go through attached sample for the requested functionality.

    Hope it helps.

    Thanks,

    Reeva

  • Posted 8 September 2017, 9:53 am EST

    Perfect, Thanks a lot!

    Peter

  • Posted 4 September 2019, 12:37 pm EST

    I’m having the same issue described here, but the link provided by Reeva does not work.

Need extra support?

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

Learn More

Forum Channels