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

问题描述

hi


如何在datagridview中的一个标题下合并一列中的3列。

hi
how to merge 3 column in one column under one header in datagridview.

推荐答案


SELECT Col1 + Col2 AS MergedColumn, Col3
FROM YourTable



使用上述查询从数据库中获取数据,然后将其绑定到DataGridView。



2)

[]

[]





其他用途ul资源:

[]

[]

[]

[]


Fetch data from database with query as above and then bind it to your DataGridView.

2)
http://social.msdn.microsoft.com/Forums/en-US/winformsapplications/thread/93a5364e-0cde-42ca-a030-50f5f00878d3[^]
http://www.daniweb.com/software-development/csharp/threads/245564/merging-headers-in-datagridview-of-c.net[^]


Other useful resources:
http://msdn.microsoft.com/en-us/library/85kxk29c%28VS.80%29.aspx[^]
http://www.timvw.be/2007/01/27/presenting-the-datagridviewlargetextboxcell/[^]
MergedDataGridView Control[^]
How to merge datagridview cells[^]


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

08-20 19:10