在c#中的datagridview中明智地显示数据组 [英] Show data group wise in datagridview in c#
本文介绍了在c#中的datagridview中明智地显示数据组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在datagridview中显示数据组....
示例: -
名称类型子类型
AX X1
AY Y1
AZ Z1
BP P1
BQ Q1
BR R1
Group Wise
名称类型子类型
AX X1
Y Y1
Z Z1
BP P1
Q Q1
R R1
如何显示这样......
帮我...
解决方案
我不认为DataGridView能够进行行分组。您必须自己实施或使用第三方的控件。
OutlookGrid:在Outlook样式中分组和排列项目 [ ^ ]
http://social.msdn。 microsoft.com/Forums/en-US/b54d2c92-6dbf-4f54-9e23-3a1303a20a93/row-grouping-in-datagridview-using-winforms [ ^ ] < br $>
http://10tec.com/articles / d atagridview-grouping-two-recipes.aspx [ ^ ]
Show data group wise in datagridview....
Example:--
Name Type SubType
A X X1
A Y Y1
A Z Z1
B P P1
B Q Q1
B R R1
Group Wise
Name Type SubType
A X X1
Y Y1
Z Z1
B P P1
Q Q1
R R1
How to show like this...
Help me...
解决方案
I don't think the DataGridView has the ability to do row grouping. You have to implement it yourself or use a control from a third party.
OutlookGrid: grouping and arranging items in Outlook style[^]
http://social.msdn.microsoft.com/Forums/en-US/b54d2c92-6dbf-4f54-9e23-3a1303a20a93/row-grouping-in-datagridview-using-winforms[^]
http://10tec.com/articles/datagridview-grouping-two-recipes.aspx[^]
这篇关于在c#中的datagridview中明智地显示数据组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文