System.Windows.Forms.DataGridViewColumnSortMode Enumeration

Defines how a System.Windows.Forms.DataGridView column can be sorted by the user.

Syntax

public enum DataGridViewColumnSortMode

Remarks

Each column may have a different sort mode specified by the DataGridViewColumn.SortMode property.

Members

Member NameDescription
Automatic

The user can sort the column by clicking the column header unless the column headers are used for selection. A sorting glyph will be displayed automatically.

NotSortable

The column can only be sorted programmatically, but it is not intended for sorting, so the column header will not include space for a sorting glyph.

Programmatic

The column can only be sorted programmatically, and the column header will include space for a sorting glyph.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0