DataGrid.RowDetailsVisibilityMode Property


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

 property System::Windows::Controls::DataGridRowDetailsVisibilityMode RowDetailsVisibilityMode { System::Windows::Controls::DataGridRowDetailsVisibilityMode get(); void set(System::Windows::Controls::DataGridRowDetailsVisibilityMode value); };
public System.Windows.Controls.DataGridRowDetailsVisibilityMode RowDetailsVisibilityMode { get; set; }
member this.RowDetailsVisibilityMode : System.Windows.Controls.DataGridRowDetailsVisibilityMode with get, set
Public Property RowDetailsVisibilityMode As DataGridRowDetailsVisibilityMode

Property Value


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.

Applies to

See also