如何使用Datagridview绘制表格? [英] How to use Datagridview to draw a table ?

查看:118
本文介绍了如何使用Datagridview绘制表格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Datagridview在C#中绘制表格.
我怎样才能做到这一点 ?请帮帮我.



http://i8.photobucket.com/albums/a6/minhtriit/datagridview- 1.jpg?t = 1292483808

I want to use Datagridview to draw a table in C#.
How can I do that ? Please help me.



http://i8.photobucket.com/albums/a6/minhtriit/datagridview-1.jpg?t=1292483808

推荐答案

Hi Minh_Tri,

您的网格需要合并单元格,这是不可能的.
您必须应用自定义油漆.

请参阅这些链接.


[^ ]


[ ^ ]
Hi Minh_Tri,

Your grid required to merge cell which is directly not possible.
You have to apply custom paint.

Refer these link.


[^]


[^]


我明白了.但是我该怎么做呢?我需要合并列和行.请给我代码.非常感谢!
I see. But how can i do that ? i need to merge column and row. Pls give for me code. Thanks so much !


这篇关于如何使用Datagridview绘制表格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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