Bewerken

Delen via


DataGrid.RowDetailsVisibilityMode Property

Definition

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

public:
 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.

Remarks

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