wpf-devexpress-dot-xpf-dot-grid-dot-tableview-b127abdf.md
Gets or sets the template that defines the presentation of data rows. This is a dependency property.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public DataTemplate DataRowTemplate { get; set; }
Public Property DataRowTemplate As DataTemplate
| Type | Description |
|---|---|
| DataTemplate |
A DataTemplate object that defines the presentation of data rows.
|
The template’s data context is a RowData object.
Refer to the following help topic for more information: Appearance Customization.
View Example: GridControl - Resize Rows Dynamically Using a Splitter
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataRowTemplate 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