合并标题列datagrid wpf [英] Merge header columns datagrid wpf

查看:147
本文介绍了合并标题列datagrid wpf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在WPF 4.0 DataGrid中合并单元格标题。例如,我在数据库中有两个名为Image1和Image2的字段。我想做的是有一个列标题跨越两个图像列与文本图像,而不是现在,Image1列上的第一个图像和Image2列上的第二个图像。任何帮助将不胜感激。谢谢你提前。

解决方案

这个问题在这里讨论: http://social.msdn.microsoft.com/Forums/en-US/wpf/线/ 1e414159-70f6-4be3-9be5-56e4f3278366 /


I am trying to merge cell headers in a WPF 4.0 DataGrid. For example I have two fields in the database that are named Image1, and Image2. What I want to do is have one column header span both image columns with the text "Images", instead of what there is now, "First Image" over the Image1 column, and "Second Image" over the Image2 column. Any help will be greatly appreciated. Thank you in advance.

解决方案

This question is discussed here: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/1e414159-70f6-4be3-9be5-56e4f3278366/

这篇关于合并标题列datagrid wpf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆