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.

How to set default filter in Grid Grouping Control ?

Thread ID:

Created:

Updated:

Platform:

Replies:

26162 Mar 15,2005 04:44 PM Mar 15,2005 05:16 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 15, 2005 04:44 PM

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

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.

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.

;