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.

Hod do I force GridFilterBar to reapply ?

Thread ID:





20645 Oct 21,2004 06:46 PM Oct 22,2004 07:03 PM Windows Forms 2
Tags: GridControl
Michael Feinstein
Asked On October 21, 2004 06:46 PM

I have a grid with GridFilterBar attached to it. Occasionally the dataview behind the grid changes filter. I Unwire() filter before updating and Wire() it back up, however the filtering criteria lost at that point. There is an issue and a question: Issue: if I had a value selected in filter, and I select the same value after rewiring grid - nothign happens. No exceptions, no events triggered nothing. If I then select different value (or different filter) - filter resumes to work as normal. Question: I tried implementing my own filter to save the values in between refreshes. (attached) It restores the values in the cells properly, but the filter is not created. Is there a way to force the grid to apply the filter ? SyncfusionGridSupport_2834.zip

Administrator [Syncfusion]
Replied On October 22, 2004 02:29 AM

Here is a sample showing one way you can persist filters through UnWire/Wire calls. FilterBarSample_6054.zip

Michael Feinstein
Replied On October 22, 2004 07:03 PM

This works when I am changing data, but not when I am changing the filter on the view behind the grid (which is what I am actually doing :) However your sample pushed me in the right direction, now I wrote code to save the filter generated by filter bar and reapplying it after rewiring seem to do the trick.


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.