I have a DataGridView which I add data to programatically. I have the AutoSizeRowsMode set to AllCells and the WrapMode on RowsDefaultCellStyle set to True. If I add a multiline row to the DataGridView it shows up fine (autoscaling the row to show the multiple lines). However, if I hide the column that has the multiline data (so that the columns left only have single line data) the row resizes to single row but when I reshow the hidden column the rows aren't resized. If I resize the form then the rows will correct.
The following code shows how I am toggling the visibility of the column: notificationDataGridView.Columns[1].Visible = !notificationDataGridView.Columns[1].Visible;
Can anyone help me out with how to fix this? I've tried every combination of Invalidate and Refresh I can think of.