In exporting WebGrid, you can use cache to disk feature to reduce memory usage and memory performance enhancement.
To enable the CacheToDisk in WebGrid
- Drag WebGrid to the WebForm.
- Go to WebGrid properties, server side event.
- Attach the WebGrid Export event into the WebGrid.
- Specify the CacheToDisk property to True.
C# Copy Code private void WebGrid1_Export(object sender, ISNet.WebUI.WebGrid.ExportEventArgs e)
{
e.ReportInfo.CacheToDisk = true;
}
- Run the project.