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
95
How to optimize WebGrid with large number of Columns ?
posted

I need to be able to display a large number (up to 300) columns in a WebGrid. There may be as many as 200 rows. I have quickly thrown together a test application that fills a DataTable with 300 column (all of type String) and 200 rows which I then bind to a WebGrid. I have not tweaked the WebGrid in any way from its defaults.

I am seeing very slow performance when moving around the grid. Moving from Cell to Cell is sluggish and when I change any Cell value there is a very long delay before getting control back to the end user.

Can you give me some tips on how to optimise the end user experience when using the WebGrid in this kind of scenario. I have tried setting EnableViewState to False which did not help that much. Is there some ReCalculation going on that I can turn off or can I stop some events firing maybe?