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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set default filter in Grid Grouping Control ?

Thread ID:

Created:

Updated:

Platform:

Replies:

26162 Mar 15,2005 09:44 PM UTC Mar 15,2005 10:16 PM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 15, 2005 09:44 PM UTC

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

Administrator [Syncfusion]
Replied On 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).

CONFIRMATION

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.

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

;