合并DataGrid单元格(行明智和列明智)

时间:2022-09-23 21:28:08

This question might have beebn asked earlier but i have not found ne solution....

这问题可能早些时候问过,但我还没有找到解决方案......

How can i merge Two(or More) Cells in WPF DataGrid...

如何在WPF DataGrid中合并两个(或更多)单元格...

I have found no in built provision to do it, also i doint even know how to start

我发现没有内置条款,我甚至不知道如何开始

this link shows some light but still no luck...

这个链接显示了一些亮点,但仍然没有运气......

What i wish to do is i need to Merge Two Cells of a Particula DataGridRow/DataGridColumn based on some value (It can be ne thing) Just like we Do in Excel (merging cells)

我想做的是我需要根据某些值合并一个Particula DataGridRow / DataGridColumn的两个单元格(可能是件事)就像我们在Excel中做的那样(合并单元格)

1 个解决方案

#1


0  

Have you considered doing cell templates for that cell in the row? If you want the same pattern repeated, that's an idea. You can use stack panels to align things as you need them.

您是否考虑过对该行中的单元格进行单元格模板?如果你想重复相同的模式,这是一个想法。您可以使用堆栈面板根据需要对齐事物。

#1


0  

Have you considered doing cell templates for that cell in the row? If you want the same pattern repeated, that's an idea. You can use stack panels to align things as you need them.

您是否考虑过对该行中的单元格进行单元格模板?如果你想重复相同的模式,这是一个想法。您可以使用堆栈面板根据需要对齐事物。