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: Filtering issue

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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";
rfd.Conditions.Add(fc);

this.TableDescriptor.RecordFilters.LogicalOperator = FilterLogicalOperator.And;
this.TableDescriptor.RecordFilters.Add(rfd);

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.

WindowsApplication21.zip

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

;