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).

Loader.
Up arrow icon