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.
Unfortunately, activation email could not send to your email. Please try again.

DataBound Grid Refreshing with GridFilterBar on

Thread ID:

Created:

Updated:

Platform:

Replies:

11104 Feb 23,2004 05:24 PM Feb 23,2004 06:37 PM Windows Forms 2
loading
Tags: GridControl
Bidin Dinesababu
Asked On February 23, 2004 05:24 PM

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 06:06 PM

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 06:37 PM

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

CONFIRMATION

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.

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.

;