All docs
V21.1
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

DynamicCollection.FetchObjects Event

Occurs when the DynamicCollection contents are accessed for the first time, when this collection is reloaded, or its Criteria and Sorting parameters are changed. Handle this event and set the FetchObjectsEventArgs.Objects argument the DynamicCollection contents.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v21.1.dll

Declaration

public event EventHandler<FetchObjectsEventArgs> FetchObjects

Event Data

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

Property Description
Criteria Specifies criteria used to filter objects in the Objects collection.
InTransaction Specifies if the specified Criteria and Sorting parameters are applied to all objects (in the database and retrieved).
Objects Objects that is the DynamicCollection contents. You can shape (filter, sort, or trim) this collection yourself or set the ShapeData parameter to true to make the DynamicCollection do this.
ObjectType Returns the type of objects that can be contained by the Objects collection.
ShapeData Specifies whether the DynamicCollection should shape (filter, sort) the Objects collection.
Sorting Specifies the list of SortProperty objects that specify the sort order for the Objects collection.
TopReturnedObjects Specifies the maximum number of objects DynamicCollection gets from the Objects collection.

Remarks

Refer to the Filter and Sort Non-Persistent Objects section to learn how to handle this event.

See Also