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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GGC: Filtering issue

Thread ID:





69048 Oct 11,2007 07:58 AM UTC Oct 12,2007 09:56 AM UTC WinForms 1
Tags: Grouping
Patrick Cheng
Asked On October 11, 2007 07:58 AM UTC


I have 2 ggc (A and B) and want to be able to filter B based on the record chosen in A. I have the following code, but it does not seem to work when the application is running, however does work when it is set and loaded.

this.Table.TableDirty = true;
this.Table.SummariesDirty = true;
RecordFilterDescriptor rfd = new RecordFilterDescriptor();
FilterCondition fc = new FilterCondition(FilterCompareOperator.Equals, orderId);
rfd.Name = "OrderId";

this.TableDescriptor.RecordFilters.LogicalOperator = FilterLogicalOperator.And;

I even called Refresh() and Update() but nothing seems to work. Please help, what am I doing wrong here?

Thank you.

Administrator [Syncfusion]
Replied On October 12, 2007 09:56 AM UTC

I think you need to listen to an event in the first grid to catch when the current record postion changes, and then set the filter on the second grid at that point.

Attached is a minimal sample that uses TableControlCurrentCellMoved to do this. As you click on different rows in the grid on the left, the grid on the right is filtered.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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