Condividi tramite


DataGridRow.DetailsTemplate Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Property DetailsTemplate As DataTemplate
public DataTemplate DetailsTemplate { get; set; }
<sdk:DataGridRow>
  <sdk:DataGrid.DetailsTemplate>
    dataTemplate
  </sdk:DataGridRow.DetailsTemplate>
</sdk:DataGrid>
<sdk:DataGridRow DetailsTemplate="templateReference"/>

XAML Values

Property Value

Type: System.Windows.DataTemplate
The template that is used to display the row details section or nulla null reference (Nothing in Visual Basic) to use the DataGrid.RowDetailsTemplate setting. The default is nulla null reference (Nothing in Visual Basic).

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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