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.

Set Filter in GGC and GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

31449 Jul 7,2005 11:01 AM Jul 7,2005 12:30 PM Windows Forms 2
loading
Tags: GridControl
Prof DISSOU Jamâl-Dine
Asked On July 7, 2005 11:01 AM

Hi, 1. How to set filter in GGC 2. How to set filter in GDBG 3. I have 2 GGC on a form, say (MasterGrid and DetailGrid), and I would like to bind the grids in master-details relationship. How to ? Best regards, Jamâl-Dine DISSOU

Martin Cyr
Replied On July 7, 2005 11:07 AM

Perhaps you should check in the Sample Browser, there are lots of samples describing this in detail. Take a look at the DataBound -> GDBGCombo sample, it''s a nice start.

Administrator [Syncfusion]
Replied On July 7, 2005 12:30 PM

1) You use the this.gridGroupingControl1.TableDescriptor.RecordFilters.Add method. //samples this.gridGroupingControl1.TableDescriptor.RecordFilters.Add("[UnitPrice] > 20"); this.groupingGrid1.Engine.TableDescriptor.RecordFilters.Add("Country", FilterCompareOperator.Like, "U*"); 2) You set the RowFilter property on the DataView associated with the grid. CurrencyManager cm = (CurrencyManager) grid.BindingContext[grid.DataSource, grid.DataMember]; DataView dv = (DataView) cm.List; dv.RowFilter = "[Col1] LIKE ''a*''"; 3)See this sample. \Syncfusion\Essential Studio\3.2.1.0\Windows\Grid.Windows\Samples\Grouping\MasterDetailForm

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.

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.

;