FilterRow not working

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

1 Reply

AD Administrator Syncfusion Team October 27, 2006 01:09 PM UTC

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

Loader.
Up arrow icon