DataGridRow.DetailsVisibility Property

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 Visibility DetailsVisibility { get; set; }
<sdk:DataGridRow Visibility="Visible"/>
-or-
<sdk:DataGridRow Visibility="Collapsed"/>

Property Value

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

ExceptionCondition
InvalidOperationException

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.

Silverlight

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

ADD
Show: