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.2.dll
NuGet Package: DevExpress.Web
#Declaration
[DefaultValue(GridViewSelectionStoringMode.DataIntegrityOptimized)]
public GridViewSelectionStoringMode SelectionStoringMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Grid |
Data |
One of the Grid |
Available values:
Name | Description |
---|---|
Performance |
The Grid |
Data |
The Grid |
#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.