DataGrid.SetDetailsVisibilityForItem Method (Object, Visibility)

.NET Framework (current version)

Sets the value of the DetailsVisibility property for the DataGridRow that contains the specified object.

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

public void SetDetailsVisibilityForItem(
	object item,
	Visibility detailsVisibility


Type: System.Object

The object in the row for which DetailsVisibility is being set.

Type: System.Windows.Visibility

The Visibility to set for the row that contains the item.

Use the SetDetailsVisibilityForItem method when a DataGridRow does not currently exist for an item; for example, while a row is being auto-generated.

.NET Framework
Available since 4.0
Return to top