PropertyGrid.SelectedObject Property


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

 property System::Object ^ SelectedObject { System::Object ^ get(); void set(System::Object ^ value); };
public object SelectedObject { get; set; }
member this.SelectedObject : obj with get, set
Public Property SelectedObject As Object

Property Value

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.

Applies to