次の方法で共有


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)

Syntax

'Declaration
Public Property DetailsVisibility As Visibility
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.

Exceptions

Exception Condition
InvalidOperationException

The row has not been added to a DataGrid.

Remarks

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

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.