ReportDataSourceHelper.CustomSetSorting Event
Occurs when sorting is applied to the report data source.
Namespace: DevExpress.ExpressApp.ReportsV2
Assembly: DevExpress.ExpressApp.ReportsV2.v18.2.dll
Declaration
Event Data
The CustomSetSorting event's data class is DevExpress.ExpressApp.ReportsV2.CustomSetSortingEventArgs.
Remarks
Handle this event to apply sorting 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 sorting.
ReportsModuleV2 reportsModule = ReportsModuleV2.FindReportsModule(Application.Modules);
if (reportsModule != null && reportsModule.ReportsDataSourceHelper != null) {
reportsModule.ReportsDataSourceHelper.CustomSetSorting+=
ReportsDataSourceHelper_CustomSetSorting;
}
// ...
void ReportsDataSourceHelper_CustomSetCriteria(object sender, CustomSetCriteriaEventArgs e) {
// ...
}
See Also