Export (0) Print
Expand All
Expand Minimize

DataGridView.ColumnHeadersHeight Property

Note: This property is new in the .NET Framework version 2.0.

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)

[LocalizableAttribute(true)] 
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)

Property Value

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

Exception typeCondition

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.

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft