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. Image for the cookie policy date

Set Filter in GGC and GDBG

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

2 Replies

MC Martin Cyr July 7, 2005 10: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.

AD Administrator Syncfusion Team July 7, 2005 11:30 AM

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\\Windows\Grid.Windows\Samples\Grouping\MasterDetailForm

Live Chat Icon For mobile
Up arrow icon