如何增加datagridview的大小(高度和宽度)以显示多个文本 [英] how to increase the datagridview size(height & width) to show multiple text
本文介绍了如何增加datagridview的大小(高度和宽度)以显示多个文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,
我已经创建了一个应用程序,其中我使用了富文本框,其中写入了多个文本,该记录已插入数据库中.该记录显示在datagridview中.
我已经展示了整个记录意味着将所有以富文本格式的文本都放入datagridview中.我不能显示不仅在datagridview中显示单行,还显示在键入多条语句时显示的富文本框.我还看到了datagridview.
请给我这个问题的答案.
我相信问题是如何将多行RichTextBox放入DataGridView的一个单元格中.在Column
的单元格中插入富文本,并希望在DataGridView
的每一行中显示多行富文本.
没有内置支持在DataGridView
中显示富文本.但是,可以创建自定义DataGridViewColumn
和自定义DataGridViewCell
以在DataGridView
中显示富文本.为此编写了一个代码项目文章
DataGridView中的RichTextBox单元格 [ 解决方案
As I can understand from your question, you want to insert the rich text in cells of aColumn
and want to show multiple lines of the rich text in each row of theDataGridView
.
There is no built support to show rich text inDataGridView
. However, a customDataGridViewColumn
and a customDataGridViewCell
can be created to show rich text inDataGridView
. A Code Project article for this particular purpose is written here
RichTextBox Cell in a DataGridView[^]
I think this may be helpful to you.
这篇关于如何增加datagridview的大小(高度和宽度)以显示多个文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文