ColumnViewOptionsBehavior.CacheValuesOnRowUpdating Property
Gets or sets whether the grid caches data for a row that is about to be saved to a data source.
Namespace: DevExpress.XtraGrid.Views.Base
Assembly: DevExpress.XtraGrid.v24.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
[DefaultValue(CacheRowValuesMode.CacheAll)]
[XtraSerializableProperty]
public virtual CacheRowValuesMode CacheValuesOnRowUpdating { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DevExpress.Data.CacheRowValuesMode | CacheAll | Specifies the caching mode. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to CacheValuesOnRowUpdating |
---|---|
ColumnView |
|
Remarks
When a row is about to be saved to a data source, the grid saves its values to an internal buffer (so that the values can be restored in case the row’s values are reset by the data source’s validation mechanism).
In certain cases, obtaining data from a data source, and therefore caching a row’s values, may take a lot of time; for example, if reading a row’s data requires data to be selected from a database server. In this instance, consider setting the CacheValuesOnRowUpdating property to Disabled. The grid’s performance will be improved, as it will no longer cache data. A drawback is that the grid will not be able to restore a row’s values if they are reset by the data source’s validation mechanism.