Skip to main content
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.v24.1.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.

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