Author: Bacarat | Posted on: 7/10/2008 11:54:01 AM | Views : 664

Hi,
I have a Microsoft report viewer tied into an object data source. The object data source is pointing to a data table .xsd file. I have setup my filtering using parameters in SQL and tying those parameters to controls on my web form to filter the report. That is working fine, however I also want to be able to use a dropdown list to select the fields to sort the report by, as well as what order ascending or descending.  I know you cannot use parameters in the Sort By column in SQL so I have been trying to use the SORT BY CASE statement then pointing those parameters to the dropdowns in my web form, but every time I try to add the ORDER BY CASE SQL gives me an error. Here is my code and the error messages. Any help would be greatly apprec ...

Go to the complete details ...