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.

GGC: Filtering issue

Thread ID:





69048 Oct 11,2007 03:58 AM Oct 12,2007 05:56 AM Windows Forms 1
Tags: Grouping
Patrick Cheng
Asked On October 11, 2007 03:58 AM


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 05:56 AM

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.

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.