Share via


DataGridView.AutoResizeColumns Method (2007 System)

Include Protected Members
Include Inherited Members

Adjusts the width of all columns to fit the contents of their cells.

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

Overload List

 

Name

Description

Public method

AutoResizeColumns()

Adjusts the width of all columns to fit the contents of all their cells, including the header cells. (Inherited from DataGridView.)

Public method

AutoResizeColumns(DataGridViewAutoSizeColumnsMode)

Adjusts the width of all columns using the specified size mode. (Inherited from DataGridView.)

Protected method

AutoResizeColumns(DataGridViewAutoSizeColumnsMode, Boolean)

Adjusts the width of all columns using the specified size mode, optionally calculating the widths with the expectation that row heights will subsequently be adjusted. (Inherited from DataGridView.)

Top

See Also

Reference

DataGridView Class

DataGridView Members

Microsoft.Office.Tools.Word.Controls Namespace