DataGrid中的多个行标题 [英] Multiple Row Headers in a DataGrid

查看:297
本文介绍了DataGrid中的多个行标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试在Windows窗体中设计具有多个标头的数据网格.

希望我的数据网格看起来像这样.

第1部分P2 P3 P4 P5 P6
标头1
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
标头1
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
标头1
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
总P:0.00


但是我如何才能将我的第二个和第三个标头包含在DataGrid中呢?

Hi,

I am trying to design a datagrid with multiple headers in a windows form.

This is hiw i wish my datagrid would look like.

Part1 P2 P3 P4 P5 P6
Header1
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
Header1
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
Header1
0.00 0.00
0.00 0.00
0.00 0.00
0.00 0.00
Total P: 0.00


But how can i include my Second and Third Headers in a DataGrid ?

推荐答案

您真的不能.我怀疑您有一个包含许多数据网格的控件,因此每个控件都有其标题.
You can''t, really. I suspect you''d have a control that contains many datagrids, so each has it''s header.


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

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