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
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