开发者

Multiline Textbox Column in DataGridView

开发者 https://www.devze.com 2023-01-20 07:19 出处:网络
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 wit

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

精彩评论

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