About column preferred width

Posted by: pd-lectra on 8 September 2017, 1:38 pm EST

  • Posted 8 September 2017, 1:38 pm EST

    Hello,

    I have dealing with performance problems with big grids, (using a FpSpread 2005.2007 (2.5)) and I would like to know if using the Column.GetPreferredWidth() method could be the reason why my grid spends so much time to update.

    If no change happens on a specific column, does the GetPreferredColumnWidth() recalculate anyway or does it buffer the last result ?

    TY for your answer.

     

  • Replied 8 September 2017, 1:38 pm EST

    Most likely it does.  If the spread is repainting then it will have to.  You could try calling the SuspendLayout and ResumeLayout methods to see if this improves your performance, but there are other factors that may also be involved that slow down the spread.
Need extra support?

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

Learn More

Forum Channels