Version

SortMode Property

Gets or sets the sort mode for the column.
Syntax
'Declaration
 
Public Shadows Property SortMode As DataGridViewColumnSortMode
public new DataGridViewColumnSortMode SortMode {get; set;}
Remarks

A DataGridViewColumnSortMode that specifies the criteria used to order the rows based on the cell values in a column.

If the Value assigned to this property conflicts with the System.Windows.Forms.SelectionMode, an System.InvalidOperationException will occur.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also