Performance Tuning in the Windows Forms DataGridView Control
When working with large amounts of data, the DataGridView control can consume a large amount of memory in overhead, unless you use it carefully. On clients with limited memory, you can avoid some of this overhead by avoiding features that have a high memory cost. You can also manage some or all of the data maintenance and retrieval tasks yourself using virtual mode in order to customize the memory usage for your scenario.
In This Section
Best Practices for Scaling the Windows Forms DataGridView Control
Describes how to use the DataGridView control in a way that avoids unnecessary memory usage and performance penalties when working with large amounts of data.Virtual Mode in the Windows Forms DataGridView Control
Describes how to use virtual mode to supplement or replace the standard data-binding mechanism.Walkthrough: Implementing Virtual Mode in the Windows Forms DataGridView Control
Describes how to implement handlers for several virtual-mode events. Also demonstrates how to implement row-level rollback and commit for user edits.Implementing Virtual Mode with Just-In-Time Data Loading in the Windows Forms DataGridView Control
Describes how to load data on demand, which is useful when you have more data to display than the available client memory can store.
Reference
DataGridView
Provides reference documentation for the DataGridView control.VirtualMode
Provides reference documentation for the VirtualMode property.
See Also
Concepts
Data Display Modes in the Windows Forms DataGridView Control