This example shows how to dynamically add a parameter to XtraReport, compose FilterString in the SqlDataSource and use XtraReport's parameters to filter data in the SqlDataSource.
Question Comments
Added By: Janvic Castrejon at: 7/31/2016 10:55:20 PM Hi!, when I try this code, I have the next exception: "NullReferenceException" in the line of "tq.Parameters.Add(queryParameter1);"
How do I solve it?
I need to pass a parameter in the code, for when loading the report, this already has the necessary information.Added By: Jannet (DevExpress Support) at: 8/1/2016 12:40:17 AM
Hello,
I've created a separate ticket on your behalf (T409623: The T158360 example - "NullReferenceException" in the line of "tq.Parameters.Add(queryParameter1);"). It has been placed in our processing queue and will be answered shortly.