DataGridView.AutoResizeRows Method

 

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

NameDescription
System_CAPS_pubmethodAutoResizeRows()

Adjusts the heights of all rows to fit the contents of all their cells, including the header cells.

System_CAPS_pubmethodAutoResizeRows(DataGridViewAutoSizeRowsMode)

Adjusts the heights of the rows using the specified size mode value.

System_CAPS_protmethodAutoResizeRows(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.

System_CAPS_protmethodAutoResizeRows(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.

Return to top
Show: