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
2306
PerformAutoResize Slow
posted

Hello!

i have a grid with 3500Rows!

calling this method ->  band.Columns[0].PerformAutoResize(PerformAutoSizeType.AllRowsInBand);

it takes  19-20 seconds to resize all columns. Am i doing something wrong or with this quantity of rows the grid is not so performant?

 

thank you

Parents
No Data
Reply
  • 469350
    Offline posted

    Calling PerformAutoResize with AllRowsInBand forces the grid to load all of the data rows from the data source. While this might cause a small performance hit, 19-20 seconds seems quite excessive for 3500 rows.

    What's the data type of the column?

    Is there anything unusual about this column? Are you setting an Editor or EditorControl on it? Or maybe a ValueList? 

    Try turning on exception handling in Visual Studio and see if any exceptions are being raised and caught during the PerformAutoResize call. 

Children