expressappframework-devexpress-dot-expressapp-dot-fetchobjectseventargs.md
Specifies criteria used to filter objects in the Objects collection.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public CriteriaOperator Criteria { get; }
Public ReadOnly Property Criteria As CriteriaOperator
| Type | Description |
|---|---|
| CriteriaOperator |
A criteria used to filter objects in the Objects collection.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Criteria property.
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.
if(e.ObjectType == typeof(Contact)) {
var rows = contactsStorage.GetContactRows(e.Criteria, e.Sorting);
e.Objects = rows.Select(row => GetContact(row));
private void DynamicCollection_FetchObjects(object sender, FetchObjectsEventArgs e) {
e.Objects = GetList(e.ObjectType, e.Criteria, e.Sorting);
e.ShapeData = true;
Private Sub DynamicCollection_FetchObjects(ByVal sender As Object, ByVal e As FetchObjectsEventArgs)
e.Objects = GetList(e.ObjectType, e.Criteria, e.Sorting)
e.ShapeData = True
See Also