wpf-devexpress-dot-xpf-dot-grid-dot-tableview-8d234b17.md
Gets or sets whether to enable the grid’s optimized mode. This is a dependency property.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public UseLightweightTemplates? UseLightweightTemplates { get; set; }
Public Property UseLightweightTemplates As UseLightweightTemplates?
| Type | Description |
|---|---|
| Nullable<UseLightweightTemplates> |
A UseLightweightTemplates enumeration value.
|
Available values:
| Name | Description |
|---|---|
| None |
Lightweight templates are disabled.
| | Row |
Lightweight templates are enabled for grid rows.
| | GroupRow |
Lightweight templates are enabled for group rows.
| | NewItemRow |
Lightweight templates are enabled for the new item row.
| | All |
Lightweight templates are enabled for all rows.
|
When the UseLightweightTemplates property is null , lightweight templates are enabled for all rows (i.e. UseLightweightTemplates.All value).
To learn more, see Optimized Mode.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UseLightweightTemplates property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-grid-resize-rows-using-splitter/CS/PersistentRowState/MainWindow.xaml#L35
<dxg:TableView AutoWidth="True"
DataRowTemplate="{DynamicResource PersistentRowStateDataRowTemplate}" UseLightweightTemplates="None"/>
</dxg:GridControl.View>
See Also