We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Howto: make ggrid redraw visible portion

Thread ID:





22619 Dec 16,2004 02:02 PM UTC Dec 16,2004 04:03 PM UTC WinForms 1
Tags: Grouping
Dominic Morris
Asked On December 16, 2004 02:02 PM UTC

I need to get the groupinggrid to redraw the visible portion of the grid. How can I do this? The reason I need to do this is as follows. 1. I discovered that updating the underlying DataTable on a non-UI thread was the cause of the slowdown when scrolling through the grid. 2. So, instead of updating the DataTable, I now update a custom object. The DataTable holds a reference to this object, and the object''s ToString() fn. returns the actual data. The datatype of the DataColumn is set to match that of the custom object. 3. This does indeed produce much better scrolling performance, but the new value of the custom object is only reflected in the grid when the grid calls ToString() on the custom object, i.e. when it needs to paint the cell. When the grid is static, it doesn''t do this, so the new value of the cell is never displayed. I''m batching multiple updates to the custom objects every second, and executing them on a separate thread. After I''ve run through the batch, I need to instruct the grid to redraw specific columns and cells, but only the ones that are on-screen. Furthermore, I require this to work not only while the grid is static, but also when it is being scrolled. Any help is much appreciated. DM.

Administrator [Syncfusion]
Replied On December 16, 2004 04:03 PM UTC

Hi Dominic, You need to implement IBindingList and raise ListChanged events in the custom list. See also my other answer. Stefan


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon