Welcome to the Xceed Community | Help
Community Search  
More Search Options

problem when using auto filter and converter

Sort Posts: Previous Next
  •  03-01-2012, 5:36 AM Post no. 31787

    problem when using auto filter and converter


    I'm using the datagrid 4.0 WPF for some time now - and it's great :-)


    One problem I have is that the auto filter (excel like) does not work correctly when the field in the datagrid has a currency data template applied.

    When I click the auto filter instead of seeing a list of values - I see the name of the field again and again...


    The data template is here:

    <DataTemplate x:Key="currency_celltemplate">

            <TextBlock Text="{xcdg:CellEditorBinding Converter={x:Static local:CustomCurrencyConverter.Instance}}"/>



    The Converter is simple:

    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)




                    string cur=string.Format("{0:c}", value);

                    return cur;


                catch (Exception ex)


                    Message.ShowInfo(ex.Message, "Error applying currency format");

                    return value.ToString();




    Any ideas?

  •  03-06-2012, 9:29 AM Post no. 31802 in reply to 31787

    Re: problem when using auto filter and converter

    Hi Uri, 

    Could you send us a basic sample that demonstrates the problem so that we investigate this in more detail?

    You can send it to support@xceed.com, please include a reference to this forum post in your email.  

    Best Regards,

    Michel Dahdah
    Technical Support
    Xceed Software inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.