This is a migrated thread and some comments may be shown as answers.

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

3 Answers 172 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Arup
Top achievements
Rank 1
Arup asked on 03 Jan 2017, 06:01 AM

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

3 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 03 Jan 2017, 01:04 PM
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.
0
Arup
Top achievements
Rank 1
answered on 03 Jan 2017, 01:48 PM

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

0
Ivan Ivanov
Telerik team
answered on 03 Jan 2017, 02:23 PM
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.
Tags
GridView
Asked by
Arup
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Arup
Top achievements
Rank 1
Share this question
or