Back to Devexpress

TableView.DataRowTemplate Property

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-b127abdf.md

latest2.4 KB
Original Source

TableView.DataRowTemplate Property

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

Declaration

csharp
public DataTemplate DataRowTemplate { get; set; }
vb
Public Property DataRowTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

A DataTemplate object that defines the presentation of data rows.

|

Remarks

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

xml
<dxg:TableView AutoWidth="True"
       DataRowTemplate="{DynamicResource PersistentRowStateDataRowTemplate}" UseLightweightTemplates="None"/>
</dxg:GridControl.View>

See Also

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace