Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
xamDataGrid: Filtering accent insensitiv
posted

Hello,

we are using the xamDataGrid and we need to filter accent insensitive.

For example we try to filter for a city in France: "Orléans".

We want to find it by typing "Orleans".

We cannot use an additional column with normalized strings, because we

don't know the resulting columns at compile time.

Has anybody an idea for a solution?

Thank you

Parents
  • 2490
    Offline posted

    Hello Lothar,

     

    Since the diacritics, for example "e" ,"é" are different letters, which have different codes the XamDataGrid's filtering treats them differently.

     

    Depending on your scenario and requirements you can create a custom filtering logic. You can use External Filtering. The External Filtering uses CollectionView object. You can activate it through UseCollectionView property. Please also note that if there are any filtering logic set using the Filter property of the ICollectionView implementing data source, it will be overwritten by the XamDataGrid's filtering criteria which are supplied through this property.

     

    You can find more about External Filtering in the documentation topic:

    http://www.infragistics.com/help/wpf/xamdatagrid-external-filtering

Reply Children