DataGridView::AutoResizeRows Method
.NET Framework (current version)
Adjusts the heights of some or all rows to fit their contents.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Name | Description | |
|---|---|---|
![]() | AutoResizeRows() | Adjusts the heights of all rows to fit the contents of all their cells, including the header cells. |
![]() | AutoResizeRows(DataGridViewAutoSizeRowsMode) | Adjusts the heights of the rows using the specified size mode value. |
![]() | AutoResizeRows(DataGridViewAutoSizeRowsMode, Boolean) | Adjusts the heights of all rows using the specified size mode, optionally calculating the heights with the expectation that column widths will subsequently be adjusted. |
![]() | AutoResizeRows(Int32, Int32, DataGridViewAutoSizeRowMode, Boolean) | Adjusts the heights of the specified rows using the specified size mode, optionally calculating the heights with the expectation that column widths will subsequently be adjusted. |
Show:

