Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataGrid.RowDetailsVisibilityMode Property

 

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

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

public DataGridRowDetailsVisibilityMode RowDetailsVisibilityMode { get; set; }

Property Value

Type: System.Windows.Controls.DataGridRowDetailsVisibilityMode

One of the enumeration values that specifies the visibility of row details. The registered default is VisibleWhenSelected. For more information about what can influence the value, see DependencyProperty.

By default, the row details section is displayed for selected rows if a RowDetailsTemplate is defined. Set this property to Visible to show the details for all rows or Collapsed to hide the details for all rows.

The RowDetailsVisibilityChanged event occurs when this property is changed.

.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Return to top
Show:
© 2017 Microsoft