使用表数据的DGV标题文本 [英] DGV header text using table data
本文介绍了使用表数据的DGV标题文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望我的datagridview标题文本我的表字段。
我的表
类Feetype
我.Jan
I.二月
我想要像这样的DGV
Jan feb
I want my datagridview header text my table fields.
My table
Class Feetype
I. Jan
I. Feb
I want DGV like this
Jan feb
推荐答案
根据我的理解,当我们将数据表设置为DGV的源时,它会将表列名称作为标题行文本。
让我知道我是否误解了你的问题
Hi,
As per my understanding, when we set the datatable as a source for DGV, it will take the tables column name as a header row text.
Let me know if I misunderstood your question
正如我的理解你要在行标题上显示行数据..你可以在sql中检查数据透视表上的一些数据
http://blogs.msdn.com/ b / spike / archive / 2009/03/03 / pivot-tables-in-sql-server-a-simple-sample.aspx [ ^ ]
这可能会有所帮助。< br $>
RKS
Hi,
As my understanding you want to show row data on the row header.. You can check some articls on Pivot table in sql
http://blogs.msdn.com/b/spike/archive/2009/03/03/pivot-tables-in-sql-server-a-simple-sample.aspx[^]
this might be helpful.
RKS
这篇关于使用表数据的DGV标题文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文