DataGrid Custom Row Filtering

Posted by: gessiliwest-at on 19 September 2017, 2:15 am EST

    • Post Options:
    • Link

    Posted 19 September 2017, 2:15 am 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

  • Posted 19 September 2017, 2:15 am EST

    Hi,

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

    [xml]

    <c1:C1DataGrid Name=“c1DataGrid1” CanUserFilter=“True” FrozenTopRowsCount=“1”

    RowHeight=“30”>

    c1:C1DataGrid.TopRows

    <c1:DataGridFilterRow />

    </c1:C1DataGrid.TopRows>

    </c1:C1DataGrid>

    [/xml]

    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

  • Posted 19 September 2017, 2:15 am EST

    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 [csharp]filterTextBox.TextChanged += new EventHandler(filterTextBox_TextChanged);[/csharp] throws an error too.

    I ask you to send me a sample of code explained in your documentation.

    best regards

    Peter

  • Posted 19 September 2017, 2:15 am EST

    Hi,

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

    Thanks,

    Sonu

  • Posted 19 September 2017, 2:15 am EST

    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

  • Posted 2 May 2018, 6:00 pm EST

    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.

  • Posted 2 May 2018, 6:00 pm EST

    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