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

