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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Using GridDataTextFilteringPane when AutoPopulateColumns="True"

Thread ID:





91436 Nov 18,2009 03:35 PM UTC Nov 26,2009 03:11 AM UTC WPF 3
Tags: GridControl
Asked On November 18, 2009 03:35 PM UTC


When setting AutoPopulateColumns="True", how can I apply advanced filters like GridDataTextFilteringPane on all auto-generated columns?


Ganesan K [Syncfusion]
Replied On November 19, 2009 11:36 AM UTC

Hi Xiang,

Thanks for using Syncfusion products.

For this, you need to listen the Model Initialized event like below

dataGrid.Model.Initialized += new EventHandler(Model_Initialized);

void Model_Initialized(object sender, EventArgs e)
foreach (GridDataVisibleColumn visibleColumn in dataGrid.VisibleColumns)
GridDataTextFilteringPane filterPane = new GridDataTextFilteringPane() { IsThemed = false, Foreground = Brushes.Black, PredicateType = Syncfusion.Windows.Data.PredicateType.And, CurrentFilterType = Syncfusion.Linq.FilterType.Equals };
visibleColumn.AllowFilter = true;
visibleColumn.FilterPane = filterPane;

Please let us know if you need any more details.


Replied On November 21, 2009 08:22 AM UTC

Hi Ganesan,

Thank you for your help.

It works but has a problem. Although I set CurrentFilterType as "Contains", the filter type on UI remains "StartWith".

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On November 26, 2009 03:11 AM UTC

Hi Shawn,

This seems to be like a bug. We would like you to create a new Direct Trac incident to follow up with this forum details. You can create the Incident with the Forum link as the Title.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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