This documentation is archived and is not being maintained.

DataGridView.AutoResizeRowHeadersWidth Method

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

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

  NameDescription
Public method AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode) Adjusts the width of the row headers using the specified size mode.
Public method 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.
Protected method 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.
Protected method 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.
Top
Show: