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

How to set default filter in Grid Grouping Control ?

As the subject says, I want to be able to set a default filter in the GridGroupingControl. Can someone help? Thanks.

1 Reply

AD Administrator Syncfusion Team March 15, 2005 10:16 PM UTC

I am not sure what you mean. Do you want your grid to be displayed filtered when it first appears? If so, in form.Load, try using code like: RecordFilterDescriptor rfd = new RecordFilterDescriptor("[Col1] < 4"); this.gridGroupingControl1.TableDescriptor.RecordFilters.Add(rfd); to initially show only those records where the value in Col1 is less than 4 (for example).

Live Chat Icon For mobile
Up arrow icon