DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.DefaultAction Property

 

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

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

public override string DefaultAction { get; }

Property Value

Type: System.String

A string that describes the default action of the DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject

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.

.NET Framework
Available since 2.0
Return to top
Show: