简体   繁体   English

WPF datagrid双头

[英]WPF datagrid double header

In WPF datagrid, is it possible to make the header look like the picture below? 在WPF datagrid中,是否可以使标题看起来像下面的图片? The example image was created in Excel. 示例图像是在Excel中创建的。 So the first header line are CURRENT and HIST. 因此,第一行标题是CURRENT和HIST。 USAGE is a merged section, and second header line showing BOH, MIN, MAX etc. USAGE是合并的部分,第二个标题行显示BOH,MIN,MAX等。

在此处输入图片说明

Thank you. 谢谢。

We can do with HierarchicalDataTemplates and apply to ItemsTemplate property of ItemsControl 我们可以使用HierarchicalDataTemplates并将其应用于ItemsControl的ItemsTemplate属性

https://docs.telerik.com/devtools/silverlight/controls/radtreeview/populating-with-data/hierarchical-data-templates https://docs.telerik.com/devtools/silverlight/controls/radtreeview/populating-with-data/hierarchical-data-templates

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM