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.

FilterRow not working

Thread ID:

Created:

Updated:

Platform:

Replies:

51096 Oct 27,2006 08:40 AM Oct 27,2006 09:09 AM Windows Forms 1
loading
Tags: GridControl
Sat Sandhu
Asked On October 27, 2006 08:40 AM

Hi,

I have a GridGroupingControl that is bound to a DataSet. The dataset has two tables in it, tableA and tableB (the child).

I do:
tableA.DefaultView.RowFilter = "[column1] LIKE 'a*'";
gridControl.Refresh();

Nothing happens - grid still shows rows where column1 value does not start with "a"

Any idea?
Ta
Sat

Administrator [Syncfusion]
Replied On October 27, 2006 09:09 AM

Hi Sat,

Use the TableDescriptor.RecordFilter property to manages the rowfilter in a grid. Here is a code snippet

//For maintable...
//Addthe filter...
this.gridGroupingControl1.TableDescriptor.RecordFilters.Add("[parentID] = 1");
//Remove the filter..
this.gridGroupingControl1.TableDescriptor.RecordFilters.Remove("parentID");

//For any table...
//Addthe filter...
this.gridGroupingControl1.GetTableDescriptor(""TableName"").RecordFilters.Add("[parentID] = 1");
//Remove the filter..
this.gridGroupingControl1.GetTableDescriptor("TableName").RecordFilters.Remove("parentID");

Best Regards,
Haneef

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.

;