Skip to main content
Version: 3.5

DataGridViewSortSelectionMode

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Defines values for specifying how the DataGridView updates the selection when it is sorted.

public enum DataGridViewSortSelectionMode : Enum

Fields​

NameDescription
ClearSelectionSelection is cleared. When sorting a DataGridView with a DataSource that supports sorting, the selection is always cleared before sorting.
KeepPositionSelected rows and cells are preserved like in Excel.
UpdatePositionSelected rows and cells are updated with the sorting.

Used By​

NameDescription
DataGridView.SortSelectionModeReturns or sets a value indicating how the DataGridView updates the selection of rows and cells when it's sorted.