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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GGC Filterbar

Thread ID:





71950 Feb 21,2008 05:02 PM UTC Mar 27,2008 09:38 PM UTC WinForms 1
Tags: Grouping
Asked On February 21, 2008 05:02 PM UTC

I am using GGC. I have enabled AllowFilter.
At run time by selecting value from filterbar does filters records.
I want to save this filter information. I do get correct number and name from this.grid.TableDescriptor.RecordFilters.Count,
this.grid.TableDescriptor.RecordFilters[i].Name. However ...RecordFilters[i].Expression return empty. Any suggestions.


Administrator [Syncfusion]
Replied On March 27, 2008 09:38 PM UTC

Hi Pravin,

To get Expression for filter bar you need to handle below code in RecordFilters_Changed event.

this.gridGroupingControl1.TableDescriptor.RecordFilters.Changed += new ListPropertyChangedEventHandler(RecordFilters_Changed);

void RecordFilters_Changed(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
int lastIndex = this.gridGroupingControl1.TableDescriptor.RecordFilters.Count - 1;
FilterConditionCollection fc = gridGroupingControl1.TableDescriptor.RecordFilters[lastIndex].Conditions;
if(fc.Count > 0)
Console.WriteLine(fc[0].FilterDescriptor.Name + " - " + fc[0].CompareOperator.ToString() + ":" + fc[0].CompareValue.ToString());

Please let me know if this helps.

Best regards,


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