Intersoft WebGrid Documentation
How-to: Set a different location for CacheToDisk feature
See Also Send comments on this topic.

Glossary Item Box

In exporting WebGrid, you can use cache to disk feature to reduce memory usage and memory performance enhancement. However, the cache to disk location can be set manually depends on the user needs.

To set different location for CacheToDisk feature in WebGrid

  1. Drag WebGrid to the WebForm.
  2. Go to WebGrid properties, server side event.
  3. Attach the WebGrid Export event into the WebGrid.
  4. Specify the CacheToDiskLocation property in the local harddisk.

    C# Copy ImageCopy Code
    private void WebGrid1_Export(object sender, ISNet.WebUI.WebGrid.ExportEventArgs e)
    {
    e.ReportInfo.CacheToDiskLocation = "c:\\ExportPath\\";
    }

  5. Run the project.

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.