Skip to main content
A newer version of this page is available. .

PropertyGridControl.CustomPropertyDescriptors Event

Allows you to filter properties or display custom properties.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v19.2.dll

Declaration

public event CustomPropertyDescriptorsEventHandler CustomPropertyDescriptors

Event Data

The CustomPropertyDescriptors event's data class is CustomPropertyDescriptorsEventArgs. The following properties provide information specific to this event:

Property Description
Attributes Gets an array of the default browsable attributes used by the Property Grid Control to retrieve properties from the selected object(s).
Context Gets contextual information on a property.
Properties Gets or sets the collection of PropertyDescriptor objects that identify properties to be displayed in the control.
Source Gets the object whose properties must be retrieved via the event.

Remarks

The CustomPropertyDescriptors event fires when it is required to display properties at a specific level. First, it fires when root properties of the selected object(s) need to be displayed. Then, it fires every time when expanding a property that has nested properties.

Use the event’s Properties parameter to specify properties. You can change this collection by modifying it or assigning a new collection.

Examples

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CustomPropertyDescriptors event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also