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

GGC FilterBar (Urgent)

Thread ID:

Created:

Updated:

Platform:

Replies:

76736 Sep 22,2008 09:57 AM UTC Sep 23,2008 07:25 AM UTC WinForms 1
loading
Tags: GridControl
Simon Kakon
Asked On September 22, 2008 09:57 AM UTC

Hi,
How can I Update the combobox filterbar values when a row is inserted/deleted or updated.

Thanks


Nisha Arockiya A [Syncfusion]
Replied On September 23, 2008 07:25 AM UTC

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=250

Please let me know if this helps.

Regards,
Nisha



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

;