Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EnableRowVirtualization Property
Collapse the table of content
Expand the table of content

DataGrid.EnableRowVirtualization Property

.NET Framework 4.6 and 4.5

Gets or sets a value that indicates whether row virtualization is enabled.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public bool EnableRowVirtualization { get; set; }
<object EnableRowVirtualization="bool" .../>

Property Value

Type: System.Boolean
true if row virtualization is enabled; otherwise, false. The registered default is true. For more information about what can influence the value, see DependencyProperty.

To improve performance, the EnableRowVirtualization property is set to true by default. When the EnableRowVirtualization property is set to true, the DataGrid does not instantiate a DataGridRow object for each data item in the bound data source. Instead, the DataGrid creates DataGridRow objects only when they are needed, and reuses them as much as it can. For example, the DataGrid creates a DataGridRow object for each data item that is currently in view and recycles the row when it scrolls out of view.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft