Search code examples
c#.netteleriktelerik-reporting

How to display single scalar value in Telerik Report?


I need to show a single value in telerik report. I need to pass report parameters to the function that returns this single value and and display that returned value in a textbox in the body of the report.

How do I do this?


Solution

  • I would suggest adding a property in the the partial class of the report and assign it to the control in the NeedDataSource event handler.

    public partial class SimpleReport : Telerik.Reporting.Report
    {
        public int ScalerValue;
    
        private void Report1_NeedDataSource(object sender, EventArgs e)
        {
             myTextBox.Text = ScalerValue.ToString();
        }
    }