Hi,
Thanks for your interest in SyncfusionProducts.
After the DataSource has been updated, you can specify the Filter criteria by setting the filter condition in RecordFilters of TableDescriptor.Please refer to the following code snippet.
RecordFilterDescriptorCollection filterCollection =
this.gridGroupingControl1.TableDescriptor.RecordFilters;
filterCollection.Clear();
filterCollection.LogicalOperator = FilterLogicalOperator.Or;
RecordFilterDescriptor filterDesc = new RecordFilterDescriptor(colName);
filterCollection.Add(filterDesc);
FilterCondition fc = new FilterCondition(FilterCompareOperator.Equals, m_colText);
this.gridGroupingControl1.TableDescriptor.Columns[colName].AllowFilter = true;
filterCollection[colName].Conditions.Add(fc);
You can set a FilterBar using the following code snippet.
RecordFilterDescriptor rfd = new RecordFilterDescriptor(this.textBox1.Text.ToString(), new
Syncfusion.Grouping.FilterCondition(FilterCompareOperator.Equals,this.textBox2.Text.ToString()));
this.gridGroupingControl1.TableDescriptor.RecordFilters.Add(rfd);
Please refer to the following Forum for more information on implementation.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=250Please let me know if this helps.
Regards,
Nisha