Intersoft WebGrid Documentation
UseCachedDataOnFirstLoad Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGrid Class : UseCachedDataOnFirstLoad Property






Specifies whether to use cached data when the page is first loaded.

Syntax

Visual Basic (Declaration) 
<ISNet.Serialization.BinarySerializableAttribute()>
<BrowsableAttribute(False)>
<DefaultValueAttribute()>
<CategoryAttribute("Data")>
Public Property UseCachedDataOnFirstLoad As Boolean
Visual Basic (Usage)Copy Code
Dim instance As WebGrid
Dim value As Boolean
 
instance.UseCachedDataOnFirstLoad = value
 
value = instance.UseCachedDataOnFirstLoad
C# 
[ISNet.Serialization.BinarySerializableAttribute()]
[BrowsableAttribute(false)]
[DefaultValueAttribute()]
[CategoryAttribute("Data")]
public bool UseCachedDataOnFirstLoad {get; set;}
Delphi 
public read-write property UseCachedDataOnFirstLoad: Boolean; 
JScript 
ISNet.Serialization.BinarySerializableAttribute()
BrowsableAttribute()
DefaultValueAttribute()
CategoryAttribute("Data")
public function get,set UseCachedDataOnFirstLoad : boolean
Managed Extensions for C++ 
[ISNet.Serialization.BinarySerializableAttribute()]
[BrowsableAttribute(false)]
[DefaultValueAttribute()]
[CategoryAttribute("Data")]
public: __property bool get_UseCachedDataOnFirstLoad();
public: __property void set_UseCachedDataOnFirstLoad( 
   bool value
);
C++/CLI 
[ISNet.Serialization.BinarySerializableAttribute()]
[BrowsableAttribute(false)]
[DefaultValueAttribute()]
[CategoryAttribute("Data")]
public:
property bool UseCachedDataOnFirstLoad {
   bool get();
   void set (    bool value);
}

Remarks

When this property is set to True, InitializeDataSource event will not be fired even on first page load if the DataSource is still in cache.Set this property to True will improve the performance significantly and is highly recommended for page that display static/unconditional data, such as all customers data. For page that displays grid data based on a condition or criteria, it is best to set this property to False

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.