Export (0) Print
Expand All

DataGridView.AutoResizeRows Method

Adjusts the heights of some or all rows to fit their contents.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method AutoResizeRows() Adjusts the heights of all rows to fit the contents of all their cells, including the header cells.
Public method AutoResizeRows(DataGridViewAutoSizeRowsMode) Adjusts the heights of the rows using the specified size mode value.
Protected method 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.
Protected method 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.
Top
Show:
© 2014 Microsoft