PropertyGridControl.SelectedObjects Property
Gets or sets the currently selected objects.
Namespace: DevExpress.XtraVerticalGrid
Assembly: DevExpress.XtraVerticalGrid.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
Object[] | An array of objects that are currently browsed. |
Remarks
Use the SelectedObjects property to specify an array of objects to be browsed. The PropertyGridControl only displays the properties that are common to all the objects in the array. By default, the PropertyGridControl creates rows for the properties marked with the BrowsableAttribute.Yes attribute. To customize the collection of browsable attributes see PropertyGridControl.BrowsableAttributes.
If the current row collection is not empty and an array is assigned to the SelectedObjects property, the control will not repopulate the row collection by default. To make the control recreate rows every time an object is assigned, set the PropertyGridControl.AutoGenerateRows property to true.
Assigning an array to the SelectedObjects replaces the reference to an object that might have been assigned to the PropertyGridControl.SelectedObject property.
If the selected object supports the INotifyPropertyChanged interface, the control automatically updates its content when a property changes. Set the PropertyGridControl.OptionsBehavior.RefreshOnSelectedObjectChanges property to false to prevent the automatic updates.