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.v20.1.dll

Declaration

[DefaultValue(CacheRowValuesMode.CacheAll)]
[XtraSerializableProperty]
public virtual CacheRowValuesMode CacheValuesOnRowUpdating { get; set; }
<DefaultValue(CacheRowValuesMode.CacheAll)>
<XtraSerializableProperty>
Public Overridable Property CacheValuesOnRowUpdating As CacheRowValuesMode

Property Value

Type Default Description
DevExpress.Data.CacheRowValuesMode

CacheAll

A DevExpress.Data.CacheRowValesMode value that specifies the caching mode.

Property Paths

You can access this nested property as listed below:

Show 15 property paths
Object Type Path to CacheValuesOnRowUpdating
AdvBandedGridView
.OptionsBehavior.CacheValuesOnRowUpdating
AdvBandedGridView
.OptionsBehavior.CacheValuesOnRowUpdating
BandedGridView
.OptionsBehavior.CacheValuesOnRowUpdating
BandedGridView
.OptionsBehavior.CacheValuesOnRowUpdating
ColumnView
.OptionsBehavior.CacheValuesOnRowUpdating
CardView
.OptionsBehavior.CacheValuesOnRowUpdating
CardView
.OptionsBehavior.CacheValuesOnRowUpdating
GridView
.OptionsBehavior.CacheValuesOnRowUpdating
GridView
.OptionsBehavior.CacheValuesOnRowUpdating
LayoutView
.OptionsBehavior.CacheValuesOnRowUpdating
LayoutView
.OptionsBehavior.CacheValuesOnRowUpdating
TileView
.OptionsBehavior.CacheValuesOnRowUpdating
TileView
.OptionsBehavior.CacheValuesOnRowUpdating
WinExplorerView
.OptionsBehavior.CacheValuesOnRowUpdating
WinExplorerView
.OptionsBehavior.CacheValuesOnRowUpdating

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.

See Also