Hi,
I'm trying to add a UI element to my report allowing users to select columns in the report to use for sorting.
Following the documentation I have successfully enabled the Parameters area in the report and a drop-down box duly appears containing the expected values. However, on first rendering the report a red circle appears next to the drop-down saying "invalid value" and no data appears in the report. First question is: how can I ensure unsorted values appear by default in the report as it loads?
More confusingly, although the report will successfully "preview" once a sort field has been selected, no sorting actually seems to occur. I've been messing around with the sort property of the report and I can't seem to get the syntax right to enable sorting. What I want to happen is for the ValueMember of the drop-down box DataSource to become the field used for sorting the data (the strings are identical) .. how can I achieve this?
(It's probably worth mentioning that some of the field names contain spaces, and the syntax I need for this is also confusing me ... is it Fields.fieldname with space or "Fields.fieldname with space" or Fields.[fieldname with space] or something else?)
Is there any way of getting a parameter from an external object - say a querystring on the page containing the ReportViewer and the passing it down to the report that the viewer is loading?
Cheers,
Matt
I'm trying to add a UI element to my report allowing users to select columns in the report to use for sorting.
Following the documentation I have successfully enabled the Parameters area in the report and a drop-down box duly appears containing the expected values. However, on first rendering the report a red circle appears next to the drop-down saying "invalid value" and no data appears in the report. First question is: how can I ensure unsorted values appear by default in the report as it loads?
More confusingly, although the report will successfully "preview" once a sort field has been selected, no sorting actually seems to occur. I've been messing around with the sort property of the report and I can't seem to get the syntax right to enable sorting. What I want to happen is for the ValueMember of the drop-down box DataSource to become the field used for sorting the data (the strings are identical) .. how can I achieve this?
(It's probably worth mentioning that some of the field names contain spaces, and the syntax I need for this is also confusing me ... is it Fields.fieldname with space or "Fields.fieldname with space" or Fields.[fieldname with space] or something else?)
Is there any way of getting a parameter from an external object - say a querystring on the page containing the ReportViewer and the passing it down to the report that the viewer is loading?
Cheers,
Matt