| title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
How to: Implement Virtual Mode in the Windows Forms DataGridView Control |
03/30/2017 |
.net-framework |
|
article |
|
|
98236267-f08e-4918-bcf9-77acf050a3ca |
15 |
dotnet-bot |
dotnetcontent |
wpickett |
How to: Implement Virtual Mode in the Windows Forms DataGridView Control
The following code example demonstrates how to manage large sets of data using a xref:System.Windows.Forms.DataGridView control with its xref:System.Windows.Forms.DataGridView.VirtualMode%2A property set to true.
For a complete explanation of this code example, see Walkthrough: Implementing Virtual Mode in the Windows Forms DataGridView Control.
Example
[!code-cppSystem.Windows.Forms.DataGridView.VirtualMode#000] [!code-csharpSystem.Windows.Forms.DataGridView.VirtualMode#000] [!code-vbSystem.Windows.Forms.DataGridView.VirtualMode#000]
Compiling the Code
This example requires:
- References to the System and System.Windows.Forms assemblies.
For information about building this example from the command line for [!INCLUDEvbprvb] or [!INCLUDEcsprcs], see Building from the Command Line or Command-line Building With csc.exe. You can also build this example in [!INCLUDEvsprvs] by pasting the code into a new project. Also see How to: Compile and Run a Complete Windows Forms Code Example Using Visual Studio.
See Also
xref:System.Windows.Forms.DataGridView
xref:System.Windows.Forms.DataGridView.VirtualMode%2A
xref:System.Windows.Forms.DataGridView.CellValueNeeded
xref:System.Windows.Forms.DataGridView.CellValuePushed
xref:System.Windows.Forms.DataGridView.NewRowNeeded
xref:System.Windows.Forms.DataGridView.RowValidated
xref:System.Windows.Forms.DataGridView.RowDirtyStateNeeded
xref:System.Windows.Forms.DataGridView.CancelRowEdit
xref:System.Windows.Forms.DataGridView.UserDeletingRow
Walkthrough: Implementing Virtual Mode in the Windows Forms DataGridView Control
Performance Tuning in the Windows Forms DataGridView Control
Virtual Mode in the Windows Forms DataGridView Control