Occurs when the report data source is initialized.
public event EventHandler<CustomSetupReportDataSourceEventArgs> CustomSetupReportDataSource
The event handler receives an argument of the DevExpress.ExpressApp.ReportsV2.CustomSetupReportDataSourceEventArgs type.
Handle this event to apply criteria and sorting manually. In the handler, you can use the ReportDataSourceHelper.GetMasterReportDataSource method to access the data source.
You can also use this event to use a custom Data Source component (inherited from DataSourceBase).