How to pass parameters to a data source?

Use the query’s Parameters property to access the query parameters collection. These include parameters created in the Query Builder and generated for the data source’s stored procedure. Use the SelectQuery.FilterString property to access the query’s filter string.
For More Information Please Refer:
https://docs.devexpress.com/XtraReports/17387/creating-reports-in-visual-studio/detailed-guide-to-devexpress-reporting/shaping-report-data/using-report-parameters/passing-parameter-values-to-a-data-source-query?v=17.2
You May Also Like to Read: