DataGrid Custom Row Filtering

Originally Posted 28 August 2017, 12:28 pm EST

  • Originally Posted 28 August 2017, 12:28 pm EST

    I' a newbe in WPF and struggling with XAML and this stuff. Learning by doing so I started with your sample code of DataGrid Custom Row Filtering. After adding C1.WPF.DataGridfilter.4 and "using System.Windows" I got only one error (CS0029 - ...TextChangedEventArgs cannot be converted into System.EventHandler).
    Your sample contains only "// Handle TextChanged to apply the filter to the column."

    Please can you give me a hint how I can do this or can you send me a demo of this sample (Section DataGrid for WPF and Silverlight / Customizing Row Cell Content)

    Best regards
  • Reply

    In latest build, you can use this functionality using the below XAML only;

    <c1:C1DataGrid Name="c1DataGrid1" CanUserFilter="True" FrozenTopRowsCount="1"
    <c1:DataGridFilterRow />

    For more info see the below link:

    Also find a sample application attached.
    Hope, it will help you.

    Singh Sonu
  • Reply

    Ok, thank you, that's fine. But I want to run the sample you explain in your documentation (
    Unfortunately I run into troubles using this code although inserting C1.WPF.DataGrid.Filters.4.
    For instance:
    The code of 'BindCellContent' uses the type 'TextBox'. This type is not declared. The line
    filterTextBox.TextChanged += new EventHandler<TextChangedEventArgs>(filterTextBox_TextChanged);
    throws an error too.
    I ask you to send me a sample of code explained in your documentation.

    best regards
  • Reply

    I escalated this to concern team. Will let you know once there is any information from them.

  • Marked as Answer


    Sorry to mention but there is problem with control docs.
    I escalated this to concern team.
    For the meantime, you can share your use case here. So that we can create a sample for you.

    Singh Sonu
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels