DataGridView::ColumnHeadersHeight Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the height, in pixels, of the column headers row

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

public:
property int ColumnHeadersHeight {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

The height, in pixels, of the row that contains the column headers. The default is 23.

Exception Condition
ArgumentOutOfRangeException

The specified value when setting this property is less than the minimum height of 4 pixels or is greater than the maximum height of 32768 pixels.

.NET Framework
Available since 2.0
Return to top
Show: