Intersoft WebGrid Documentation
ClearCachedDataSource Method
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGrid Class : ClearCachedDataSource Method






Clears the cached data source.

Syntax

Visual Basic (Declaration) 
Public Sub ClearCachedDataSource() 
Visual Basic (Usage)Copy Code
Dim instance As WebGrid
 
instance.ClearCachedDataSource()
C# 
public void ClearCachedDataSource()
Delphi 
public procedure ClearCachedDataSource(); 
JScript 
public function ClearCachedDataSource();
Managed Extensions for C++ 
public: void ClearCachedDataSource(); 
C++/CLI 
public:
void ClearCachedDataSource(); 

Example

The example below shows how to clear cached data source and rebind the datasource:

 

private void Button1_Click(object sender, System.EventArgs e)
{
        WebGrid1.ClearCachedDataSource();
        WebGrid1.RebindDataSource();
}

Remarks

Usually this method is used in Late Binding scenario. ClearCachedDataSource method is used to clear the cache of the data source. After the cached has been cleared, user can use the RebindDataSource method to rebind the data source. 

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.