Autofilter in GridGrouping Control.

I don't know how to use AutoFilter option in GridGrouping control for WinForms application. Can you please create a sample and send it to me.

Thanks,


3 Replies

HA haneefm Syncfusion Team December 6, 2007 09:22 PM UTC

Hi Jia,

AutoFilters can be enabled by setting the AllowFilter property to true. Here is the code snippet.

// ShowFilterBar for the Main table......
this.gridGroupingControl1.TopLevelGroupOptions.ShowFilterBar = true;

this.groupingGrid1.TableDescriptor.Columns["City"].AllowFilter = true;
this.groupingGrid1.TableDescriptor.Columns["Country"].AllowFilter = true;

For implementation, please refer to the FilterBar sample, that was shipped along with our product. You can find it in the following location.
\Syncfusion\EssentialStudio\5.2.0.30\Windows\Grid.Grouping.Windows\Samples\2.0\FiltersAndExpressions\FilterBar\cs

Please let me know if you need any further assistance.

Thanks for using syncfusion products.

Best regards,
Haneef



MS Mano Srinivasan December 7, 2007 01:58 PM UTC

Hi Haneef,

I am using the Syncfusion version, 4.102.0.58 and I don't see the AutoFilter property for GridGroupingControl. Is AutoFilter property available in the version, I am using?

Thanks,
Manohar

>Hi Jia,

AutoFilters can be enabled by setting the AllowFilter property to true. Here is the code snippet.

// ShowFilterBar for the Main table......
this.gridGroupingControl1.TopLevelGroupOptions.ShowFilterBar = true;

this.groupingGrid1.TableDescriptor.Columns["City"].AllowFilter = true;
this.groupingGrid1.TableDescriptor.Columns["Country"].AllowFilter = true;

For implementation, please refer to the FilterBar sample, that was shipped along with our product. You can find it in the following location.
\Syncfusion\EssentialStudio\5.2.0.30\Windows\Grid.Grouping.Windows\Samples\2.0\FiltersAndExpressions\FilterBar\cs

Please let me know if you need any further assistance.

Thanks for using syncfusion products.

Best regards,
Haneef





HA haneefm Syncfusion Team December 7, 2007 11:52 PM UTC

Hi Manohar,

Here is a minimal sample that shows you "How to enable AutoFilter in a GroupingGrid control?". Please try this and let me know if this helps.
FilterBar.zip

Best regards,
Haneef


Loader.
Up arrow icon