DataGirdView的单元格为多行Vb.Net 2008 [英] DataGirdView's Cell as Multiline Vb.Net 2008

查看:86
本文介绍了DataGirdView的单元格为多行Vb.Net 2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想将DataGridView的特定单元格启用为多行...
因此行的宽度必须自动增加...

有人对此有想法吗?

谢谢你的想法...
我的编码:-
------------

Hi
I want to enable the DataGridView''s particular cell as multiline...
and accordingly the rows width has to increase automatically...

Does anybody have idea about it?

Thanks For The Ideas...
My Codings:-
------------

Dim MyDtb1 As New DataTable,NRow as DataRow
MyDtb1.Columns.Add("one", Type.GetType("System.String"))
MyDtb1.Columns.Add("two", Type.GetType("System.String"))
MyDtb1.Columns.Add("three", Type.GetType("System.String"))

      For p As Integer = 0 To 20
           Drow = MyDtb1.NewRow
           MyDtb1.Rows.Add(Drow)
       Next

       DataGridView1.DataSource = MyDtb1

推荐答案

尝试使用此方法可以解决问题.

Datagridview-多行输入单元格 [ ^ ]

祝您圣诞快乐:-O
Try this which has answer.

Datagridview - multi-line input cell[^]

Have a great time, Merry Christmas :-O


这篇关于DataGirdView的单元格为多行Vb.Net 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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