Skip to main content
A newer version of this page is available. .
Tab

ASPxGridBehaviorSettings.SelectionStoringMode Property

Gets or sets a value that specifies how the control stores the keys of the selected records.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(GridViewSelectionStoringMode.DataIntegrityOptimized)]
public GridViewSelectionStoringMode SelectionStoringMode { get; set; }

Property Value

Type Default Description
GridViewSelectionStoringMode **DataIntegrityOptimized**

One of the GridViewSelectionStoringMode enumeration values.

Available values:

Name Description
PerformanceOptimized

The GridView tries to store the keys in the fastest way. When a user selects a several rows, the grid saves the selected keys. However, when a user selects all rows, the grid begins to add only unselected row keys.

DataIntegrityOptimized

The GridView always stores the keys of all selected rows.

Property Paths

You can access this nested property as listed below:

Show 16 property paths
Library Object Type Path to SelectionStoringMode
ASP.NET Controls and MVC Extensions ASPxCardView
.SettingsBehavior .SelectionStoringMode
ASPxGridView
.SettingsBehavior .SelectionStoringMode
ASPxVerticalGrid
.SettingsBehavior .SelectionStoringMode
GridViewProperties
.SettingsBehavior .SelectionStoringMode
ASP.NET Bootstrap Controls BootstrapCardView
.SettingsBehavior .SelectionStoringMode
BootstrapGridView
.SettingsBehavior .SelectionStoringMode
ASP.NET MVC Extensions CardViewSettings
.SettingsBehavior .SelectionStoringMode
CardViewSettings<CardType>
.SettingsBehavior .SelectionStoringMode
GridViewSettings
.SettingsBehavior .SelectionStoringMode
GridViewSettings<RowType>
.SettingsBehavior .SelectionStoringMode
MVCxCardView
.SettingsBehavior .SelectionStoringMode
MVCxGridView
.SettingsBehavior .SelectionStoringMode
MVCxGridViewProperties
.SettingsBehavior .SelectionStoringMode
MVCxVerticalGrid
.SettingsBehavior .SelectionStoringMode
VerticalGridSettings
.SettingsBehavior .SelectionStoringMode
VerticalGridSettings<ColumnType>
.SettingsBehavior .SelectionStoringMode

Remarks

Use the SelectionStoringMode property to specify the manner in which the control stores record selection.

If you set this property to PerfomanceOptimized, the control tries to store the keys in the fastest way: when a user selects a few records, the grid saves the selected keys. However, when a user selects all records, the grid begins to add only unselected record keys. This approach allows you to significantly increase performance, but the database integrity may be corrupted in some cases. To avoid this issue, we have added the DataIntegrityOptimized mode that always stores all selected record keys.

See Also