Xceed DataGrid for WPF v7.2 Documentation
ColumnVirtualizationMode Enumeration


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid.Views Namespace : ColumnVirtualizationMode Enumeration
Represent how cells are created and handled when scrolling.
Syntax
'Declaration
 
Public Enum ColumnVirtualizationMode 
   Inherits System.Enum
'Usage
 
Dim instance As ColumnVirtualizationMode
public enum ColumnVirtualizationMode : System.Enum 
Members
MemberDescription
NoneCells are not virtualized.
RecyclingCells are virtualized and recycled between columns.
VirtualizingCells are virtualized.
Remarks

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.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Xceed.Wpf.DataGrid.Views.ColumnVirtualizationMode

Requirements

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

See Also

Reference

Xceed.Wpf.DataGrid.Views Namespace