DataGridView(GridView)可以换行吗? [英] Can a DataGridView (GridView) make a line wrap?
本文介绍了DataGridView(GridView)可以换行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在DataGrid或GridView中有很多列,并且一个列(coln)的宽度很大,所以我喜欢这样显示表:
I have a lot of columns in a DataGrid or GridView and one column (coln) has a big width, so I like to show the table like this:
+------+------+------+------------+
| | col1 | col2 | col3 ......|
+header+------+------+------------+
| | coln |
+------+------+------+------------+
| | a | b | c ..... |
+ row1 +------+------+------------+
| | xxxxxxxxx |
+------+--------------------------+
| ...
DataGrid或GridView可以进行这种自动换行吗?如果是,我如何说服它做到这一点?
在此先感谢
Can a DataGrid or GridView make such a row wrap? If yes how can I convince it to do this?
Thanks in advance
推荐答案
嘿,我认为这应该可以解决您的问题,
http://stackoverflow.com/questions/6936417/colspan-gridview-rows [ ^ ]
我之前已经做过,但是此解决方案一定会给您一些解决方案
搜索gridview的colspan/rowspan以获得进一步的帮助
goodLUCK
hey i think this should solve ur problem,
http://stackoverflow.com/questions/6936417/colspan-gridview-rows[^]
i have done this before but this solution will surely give you some solution
search for colspan/rowspan of gridview for further help
goodLUCK
这篇关于DataGridView(GridView)可以换行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文