DataGridView.ColumnHeadersHeight Property

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

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

public int ColumnHeadersHeight { get; set; }
/** @property */
public int get_ColumnHeadersHeight ()

/** @property */
public void set_ColumnHeadersHeight (int value)

public function get ColumnHeadersHeight () : int

public function set ColumnHeadersHeight (value : int)

Not applicable.

Property Value

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

Exception typeCondition


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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions