Collapse the table of content
Expand the table of content
Expand Minimize

PropertyGrid.SelectedGridItem Property

Gets or sets the selected grid item.

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

public GridItem SelectedGridItem { get; set; }

Property Value

Type: System.Windows.Forms.GridItem
The currently selected row in the property grid.

Each GridItem corresponds to a property of the SelectedObject.

You can use the returned GridItem to view type information, the PropertyDescriptor, the parent, and the children of the selected object.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft