Edit

Share via


DataGridViewHeaderCell.ButtonState Property

Definition

Gets the buttonlike visual state of the header cell.

C#
protected System.Windows.Forms.ButtonState ButtonState { get; }

Property Value

One of the ButtonState values; the default is Normal.

Remarks

A DataGridViewHeaderCell is like a button in that it can be clicked to set states, such as sorting or performing row-level selection. The ButtonState property uses System.Windows.Forms.ButtonState values to provide buttonlike visual states.

Applies to

See also