Redigera

Dela via


DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.DefaultAction Property

Definition

Gets a string that describes the default action of the DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.

public:
 virtual property System::String ^ DefaultAction { System::String ^ get(); };
public override string DefaultAction { get; }
member this.DefaultAction : string
Public Overrides ReadOnly Property DefaultAction As String

Property Value

The default action of the DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject

Exceptions

.NET 5 and later versions: The Owner property is null.

Remarks

If the DataGridViewColumnHeaderCell belongs to a column with a SortMode property value of Automatic, this property returns the string "Press to sort column". If the SelectionMode property of the DataGridView control has a value of FullColumnSelect or ColumnHeaderSelect, this property returns the string "Press to select column". If neither of these conditions is present or the DataGridViewColumnHeaderCell does not currently belong to a column, this property returns Empty.

Applies to

See also