Back to Devexpress

ASPxGridView.EnableRowsCache Property

aspnet-devexpress-dot-web-dot-aspxgridview-5dab5a64.md

latest1.7 KB
Original Source

ASPxGridView.EnableRowsCache Property

Specifies whether the control caches its data.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(true)]
public bool EnableRowsCache { get; set; }
vb
<DefaultValue(True)>
Public Property EnableRowsCache As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true, to cache data; otherwise, false.

|

Remarks

ASPxGridView has built-in cache that stores data of visible rows for quick access. This avoids additional data binding when grid performs operations that do not require reloading data, for instance, when it rearranges or hides columns.

Set the EnableRowsCache property to false to disable data cache.

aspx
<dx:ASPxGridView ID="Grid" runat="server" EnableRowsCache="False" ... />

Refer to the following topic for more information: Built-in Row Cache.

See Also

Built-in Row Cache

Grid View

ASPxGridView Class

ASPxGridView Members

DevExpress.Web Namespace