'Declaration Public Enum ColumnVirtualizationMode Inherits System.Enum
'Usage Dim instance As ColumnVirtualizationMode
public enum ColumnVirtualizationMode : System.Enum
'Declaration Public Enum ColumnVirtualizationMode Inherits System.Enum
'Usage Dim instance As ColumnVirtualizationMode
public enum ColumnVirtualizationMode : System.Enum
Member | Description |
---|---|
None | Cells are not virtualized. |
Recycling | Cells are virtualized and recycled between columns. |
Virtualizing | Cells are virtualized. |
If having a low memory consumption is important in your environment, Recycling mode is the one to use, because cells will be created only for columns that are in view, and will be reused (thus recycled) between columns as new columns are scrolled into view.
If horizontal scrolling performance is more important, choose the Virtualizing mode. In this mode, all cells are created in advance, and assigned to a specific column. Thus when a column is scrolled into view, the cost of preparing the cell is minimal, since it is already associated to the column. When scrolling is done, though cells are still associated to a column, they are "virtualized" (put in a non-available state) as if they had not been created, and thus the DataGrid performance is preserved in other scenarios (e.g. live updating, vertical scrolling, group expending/collapsing) because the UI is still virtualized as when recycling.
If memory and speed is not a concern, but cell availability is important, then use the None mode, as this will create all cells, and maintain them in a valid state at all times.
System.Object
System.ValueType
System.Enum
Xceed.Wpf.DataGrid.Views.ColumnVirtualizationMode
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2