views:

22

answers:

1

I want to have a multiline textbox to display data in a DataGridView. I found a solution 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!

A: 

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

John Fischer