RadGridView with main and child datasets

0 Answers 59 Views
GridView
Daniel
Top achievements
Rank 1
Iron
Daniel asked on 25 Jun 2024, 09:02 AM
How is it possible to display main and secondary data records in a RadGridView not using the hierarchy options, but rather to design it in such a way that the main columns extend over the corresponding rows of the secondary data records via RowSpan, whereby both main and secondary data records have multiple columns?
Dimitar
Telerik team
commented on 25 Jun 2024, 10:17 AM

Hi Daniel, 

Can you provide a screenshot of the desired layout.

I am looking forward to your reply.

Daniel
Top achievements
Rank 1
Iron
commented on 25 Jun 2024, 10:43 AM | edited

It shoud look like this, but with multiple main and sub columns. Each S-value is a own row.
Dimitar
Telerik team
commented on 25 Jun 2024, 12:03 PM

Hi Daniel, 

It seems that this approach is suitable for your case: WPF DataGrid - Merged Cells. 

Let me know if I can be of further assistance.

Daniel
Top achievements
Rank 1
Iron
commented on 01 Jul 2024, 05:22 AM

Since the page doesn't provide any information about how specific cells are merged, I assume that all cells next to or above each other are merged with the same value. But then it cannot be guaranteed that different columns that always contain the same values ​​will be merged, even though that is not what is intended. So how can specific cells be merged or this problem be avoided?
Dimitar
Telerik team
commented on 02 Jul 2024, 06:05 AM

Hi Daniel, 

There is no way to manually merge the cells. Indeed the cells with the same values are merged in this case. You can only enable/disable this for each column. 

If this is not suitable I would suggest examining our demo application. There are more than 50 examples there for the grid. For example, you can check the CustomRowLayout demo to see if it can be adjusted for your case. 

Let me know if you have additional questions.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Daniel
Top achievements
Rank 1
Iron
Share this question
or