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

How to format all numbers in a detail row

2 Answers 355 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Andrew King
Top achievements
Rank 1
Andrew King asked on 28 Feb 2014, 09:44 PM
I am converting an old application to WPF and I am looking
at the various report viewer options. The back end database provides the summarized
data in table format and all number fields are float types. Each row of number
values of the table needs to be displayed it a different format; row 1 is the
summed values (scientific notation), row 2 is the limit or goal (fixed decimal),
and row 3 is the decimal percentage of goal/limit (fixed decimal percent) and this
pattern repeats. SSRS provides an expression to format numbers for the entire
detail row of the tablix. I am looking for a similar solution in Telerik’s
report designer or is there a better method of doing this that I am
overlooking?

And thanks for a native WPF report viewer
control.

2 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 05 Mar 2014, 04:27 PM
Hello Andrew,

You can change the format of the TextBox items in a row via expression. For example select all TextBox items in a row and in the Property Grid add a Binding to their Format property. the expression can use any of the built-in functions (Conditional and Data functions) and available data fields to add the needed logic for the format.

About the WPF ReportViewer, please check the following articles when you start working on it:

I hope this information helps you.


Regards,
Stef
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

0
Andrew King
Top achievements
Rank 1
answered on 06 Mar 2014, 01:56 AM
Works great! Thanks.
Tags
Report Designer (standalone)
Asked by
Andrew King
Top achievements
Rank 1
Answers by
Stef
Telerik team
Andrew King
Top achievements
Rank 1
Share this question
or