DataGridView.AutoResizeRowHeadersWidth Method

 

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

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

NameDescription
System_CAPS_pubmethodAutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode)

Adjusts the width of the row headers using the specified size mode.

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

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

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

Return to top
Show: