PropertyGrid.SelectedObject Property

 

Gets or sets the object for which the grid displays properties.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public object SelectedObject { get; set; }

Property Value

Type: System.Object

The first object in the object list. If there is no currently selected object the return is null.

The SelectedObject property sets a single object into the grid to be browsed. If multiple objects are being browsed, this property returns the first one in the list. If no objects are selected, null is returned.

.NET Framework
Available since 1.1
Return to top
Show: