DataGridRow.DetailsVisibility Property

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

Gets or sets a value that indicates when the details section of the row is displayed.

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


Public Property DetailsVisibility As Visibility
public Visibility DetailsVisibility { get; set; }
<sdk:DataGridRow Visibility="Visible"/>
<sdk:DataGridRow Visibility="Collapsed"/>

Property Value

Type: System.Windows.Visibility
An enumeration value that specifies the visibility of row details. The default is Collapsed.


Exception Condition

The row has not been added to a DataGrid.


Dependency property identifier field: DetailsVisibilityProperty

Unless you explicitly set this property for a row, the row will behave according to the DataGrid.RowDetailsVisibilityMode setting.

Version Information


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.