datagridview中的多行文本框? [英] multiline textbox in datagridview ?

查看:115
本文介绍了datagridview中的多行文本框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个使用网格显示描述的窗口应用程序.

现在如何在datagridview中制作多行文本框?以便使描述清晰可见.

谢谢
Seema

Hi,

I have window application where I used grid to display description.

Now how can I make multi line textbox in datagridview ?So that description visible clearly.

Thank you
Seema

推荐答案

只需放置一个普通文本框并对其进行设置此处 [ ^ ].
Just put a normal textbox and set it''s multiline property[^].

For details of various textbox properties, look here[^].


最简单的方法是设置DefaultCellStyleWrapMode属性.

[
The simplest way is to set the WrapMode property of the DefaultCellStyle.

This[^] page from MSDN has details and some other settings you might need.


这篇关于datagridview中的多行文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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