Merging column cells for DataGrid and Place a single button for all merged cells

4 posts, 0 answers
  1. Arup
    Arup avatar
    2 posts
    Member since:
    Jan 2016

    Posted 03 Jan 2017 Link to this post

    Hi,

    We have a requirement in our WPF application to merged Datagrid column cells when value of cells are matched and place a single button over there to show it as a group.

    On click of the button, we have to identify the rows associated with the group. Also attached a screenshot to give you the clear idea about the requirement.

    Could you please provide solution with an example with WPF telerik control at the earliest. As this is very critical and urgent requirement in our application, looking forward to get a quick response from your end.

     

    Best Regards

    Arup

  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1218 posts

    Posted 03 Jan 2017 Link to this post

    Hello,

    I prepared a sample project that demonstrates how to achieve similar results. The CellInfo property contains the information about the MergedCell's span. It is not public, but it can be easily retrieved using the .net reflection API. Please refer to the attachment.

    Regards,
    Ivan Ivanov
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Arup
    Arup avatar
    2 posts
    Member since:
    Jan 2016

    Posted 03 Jan 2017 Link to this post

    Hi Ivan,

    We are trying to implement the same with a reference of your code, but getting error message like "The member "MergedCellsStyle" is not recognized or is not accessible."

     

    Could you please help us on this to access this property for datagrid.

     

    Regards

    Prosenjit Kesh

  4. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1218 posts

    Posted 03 Jan 2017 Link to this post

    Hi,

    Can you please confirm which version of Telerik UI for WPF you are currently using? MergedCellStyle and MergedCellStyleSelector were introduced with R2 2016.

    Regards,
    Ivan Ivanov
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top