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.

GGC Filterbar

Thread ID:





71950 Feb 21,2008 12:02 PM Mar 27,2008 05:38 PM Windows Forms 1
Tags: Grouping
Asked On February 21, 2008 12:02 PM

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 05:38 PM

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.

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.