'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
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.