DataGridView.AutoResizeColumnHeadersHeight Method
.NET Framework 2.0
Adjusts the height of the column headers to fit the header contents.
DataGridView Members
System.Windows.Forms Namespace
Name | Description |
---|---|
DataGridView.AutoResizeColumnHeadersHeight () | Adjusts the height of the column headers to fit the contents of the largest column header. |
DataGridView.AutoResizeColumnHeadersHeight (Int32) | Adjusts the height of the column headers based on changes to the contents of the header in the specified column. |
DataGridView.AutoResizeColumnHeadersHeight (Boolean, Boolean) | Adjusts the height of the column headers to fit their contents, optionally calculating the height with the expectation that the column and/or row header widths will subsequently be adjusted. |
DataGridView.AutoResizeColumnHeadersHeight (Int32, Boolean, Boolean) | Adjusts the height of the column headers based on changes to the contents of the header in the specified column, optionally calculating the height with the expectation that the column and/or row header widths will subsequently be adjusted. |
Reference
DataGridView ClassDataGridView Members
System.Windows.Forms Namespace
Other Resources
DataGridView Control (Windows Forms)
Show: