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

ReportDataSourceHelper.CustomSetCriteria Event

Occurs when criteria are applied to the report data source.

Namespace: DevExpress.ExpressApp.ReportsV2

Assembly: DevExpress.ExpressApp.ReportsV2.v18.2.dll

Declaration

public event EventHandler<CustomSetCriteriaEventArgs> CustomSetCriteria

Event Data

The CustomSetCriteria event's data class is DevExpress.ExpressApp.ReportsV2.CustomSetCriteriaEventArgs.

Remarks

Handle this event to apply criteria in a custom manner. To subscribe to this event, get the ReportDataSourceHelper instance via the ReportsModuleV2.ReportsDataSourceHelper property. Set the handler’s Handled parameter to true to cancel applying the default criteria.

ReportsModuleV2 reportsModule = ReportsModuleV2.FindReportsModule(Application.Modules);
if (reportsModule != null && reportsModule.ReportsDataSourceHelper != null) {
    reportsModule.ReportsDataSourceHelper.CustomSetCriteria += 
        ReportsDataSourceHelper_CustomSetCriteria;
}
// ...
void ReportsDataSourceHelper_CustomSetCriteria(object sender, CustomSetCriteriaEventArgs e) {
    // ...
}
See Also