开发者

Multiline Textbox Column in DataGridView

I want to have a multiline textbox to display data in a DataGridView. I found a soluti开发者_如何学Pythonon here but that is not working for me. Here is my code that I am trying to fix the problem with:

myDataGridView.Columns["Column1"].DefaultCellStyle.WrapMode = DataGridViewTriState.True;

I noticed that I can scroll inside of the textboxes, but their height is not correct so I cannot see all of the data at once. I want their height to be such that I can see all of their content at once.

Thanks in advance for any advice!


I found the problem. When I set "AutoSizeRowsMode" to "AllCells" that caused the row height to default to what I wanted.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜