DataGrid Custom Row Filtering

Originally Posted 28 August 2017, 12:28 pm EST

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

    Hi
    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
    Peter
  • Reply

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


    <c1:C1DataGrid Name="c1DataGrid1" CanUserFilter="True" FrozenTopRowsCount="1"
    RowHeight="30">
    <c1:C1DataGrid.TopRows>
    <c1:DataGridFilterRow />
    </c1:C1DataGrid.TopRows>
    </c1:C1DataGrid>


    For more info see the below link:
    http://our.componentone.com/2011/11/09/datagrid-filtering-in-depth/

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

    Thanks,
    Singh Sonu
    2017/08/DataGridFilter.zip
  • Reply

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

    Thanks,
    Sonu
  • Marked as Answer

    Reply

    Hi,
    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.

    Thanks,
    Singh Sonu
  • Reply

    Hi
    Ok, thank you, that's fine. But I want to run the sample you explain in your documentation (http://helpcentral.componentone.com/nethelp/C1datagridWPF/CustomizingRowCellContent.html).
    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
    Peter
  • Reply

    Hello
    i have the same problems. Have you solved the filterproblem??

    The error occurs on the same position.

    A workarround lose the values of the textbox, if it is unvisible.

  • Reply

    Hello
    i have the same problems. Have you solved the filterproblem??

    The error occurs on the same position.

    A workarround lose the values of the textbox, if it is unvisible.

Need extra support?

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

Learn More

Forum Channels