This is a migrated thread and some comments may be shown as answers.

want to change the header text fields titles programatically

1 Answer 423 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Syed
Top achievements
Rank 1
Syed asked on 19 May 2009, 10:25 AM
I am displaying report in report viewer and i want lilke to pass parameters to change the title of the header text fields dynamically/programmatically.
Is it possible to change the header text fields titles. If so, how to pass parameters.

Moreover, i have one question. I created a report and attach a dataset with the report, i can able to display the data in report viewer.

Is it possible to change the dataset dynamically.

Example:

By default select command = "select pno,pname,salary from product"
i want to change "select pno,salary,pname from product"

Thanks.

Regards
Syed Arshad

1 Answer, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 19 May 2009, 02:19 PM
Hi Syed,

If you want to change the values of the textbox report items in the group header section through report parameters, you can simply set their expressions to reflect a certain parameter which you would change i.e. the textbox would contain =Parameters.MyHeader1TxtBoxParam.
The following video elaborates on altering your query at runtime: Telerik Reporting - Design Time Support for Parameterized Queries.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Syed
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or