Hello,
I am using the Telerik report viewer for ASP.NET. I have a DataSet object (.xsd) that I use as the data schema for my report at design time. At runtime, I fill that DataSet via code and bind it to the report (ResumeReport is my Telerik.Reporting.Report that I'm designing):
ResumeReport report = new ResumeReport();
report.DataSource = dataSet;
report.DataMember = "Users";
reportViewer.Report = report;
reportViewer.DataBind();
I have stepped through the code in debug mode and have verified that the DataSet is populated with data. I get no build errors, but when the report tries to display, I get:
"The expression contains object 'FirstName' that is not defined in the current context."
"FirstName" is a field in the "Users" table of the DataSet. I used the DataExplorer to drag the "FirstName" field on to the report, so it is just a TextBox with the value of "=FirstName". The FirstName text box is in the Details section of the report.
What am I doing wrong?