This documentation is archived and is not being maintained.

DataGridView.AutoResizeRowHeadersWidth Method

Adjusts the width of the row headers to fit the header contents.

Name Description
DataGridView.AutoResizeRowHeadersWidth (DataGridViewRowHeadersWidthSizeMode) Adjusts the width of the row headers using the specified size mode.
DataGridView.AutoResizeRowHeadersWidth (Int32, DataGridViewRowHeadersWidthSizeMode) Adjusts the width of the row headers based on changes to the contents of the header in the specified row and using the specified size mode.
DataGridView.AutoResizeRowHeadersWidth (DataGridViewRowHeadersWidthSizeMode, Boolean, Boolean) Adjusts the width of the row headers using the specified size mode, optionally calculating the width with the expectation that the row and/or column header widths will subsequently be adjusted.
DataGridView.AutoResizeRowHeadersWidth (Int32, DataGridViewRowHeadersWidthSizeMode, Boolean, Boolean) Adjusts the width of the row headers based on changes to the contents of the header in the specified row and using the specified size mode, optionally calculating the width with the expectation that the row and/or column header widths will subsequently be adjusted.
Show: