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

DataBound Grid Refreshing with GridFilterBar on

Thread ID:





11104 Feb 23,2004 10:24 PM UTC Feb 23,2004 11:37 PM UTC WinForms 2
Tags: GridControl
Bidin Dinesababu
Asked On February 23, 2004 10:24 PM UTC

Hi, I am facing a problem with DataBoundGrid refreshing. My grid is wired with FilterBar and the data gets refreshed in each 5 seconds. In order to reflect the data change, I wire the filterbar each time the grid data is updated. This works fine if no grid columns are sorted. If we sort any of the columns, the grid starts to show refresh issues. The grid gives the feedback of updating row by row and filter gets removed first and then get in place again. User is able to see all these and is annoying. And all the refreshing logic is with in BeginUpdate() and EndUpdate(). Do you have any idea , why this is happening and any solution for this? thanks in advance, Bidin

Administrator [Syncfusion]
Replied On February 23, 2004 11:06 PM UTC

The sorting triggers a ListChanged.Reset event, and this resets the grid and cancels the BeginUpdate. There is another technique that you can use to freeze painting in a Windows Forms control. This technique has handled this ListChanged.reset problem in other situations. Here is a sample. It adds a new property to a derived grid that adds a second way to freeze the screen painting through a Win32 API call. This techique is discussed in one of our Windows Forms FAQ, http://www.syncfusion.com/faq/winforms/search/637.asp This sample freezes painting while trying to sort an expanded grid so the expand state can be preserved during sorting. In your case, I think you can add the new property to a derived grid, and use this property instead of grid.BeginUpdate to freeze painting while you do your update.

Bidin Dinesababu
Replied On February 23, 2004 11:37 PM UTC

It worked Perfect! Thank you very much for quick response. Bidin


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