DataGridRow.DetailsTemplate Property

Gets or sets the template that is used to display the details section of the row.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

public DataTemplate DetailsTemplate { get; set; }
<sdk:DataGridRow DetailsTemplate="templateReference"/>

XAML Values


A DataTemplate object element that defines the display for this data grid's rows. For more information, see DataGrid Styles and Templates.


A StaticResource reference to an existing DataTemplate definition.

Property Value

Type: System.Windows.DataTemplate
The template that is used to display the row details section or null to use the DataGrid.RowDetailsTemplate setting. The default is null.

Dependency property identifier field: DetailsTemplateProperty

In XAML usage, both attribute and property element syntax for DetailsTemplate are shown because defining the template inline as opposed to referencing an existing one as a resource are both equally valid scenarios.


Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions