In this url
http://www.c-sharpcorner.com/UploadFile/mahesh/ReportViewerObject04172007111636AM/ReportViewerObject.aspx
there is a good tutorial to Bulding Reports from object Collection using ReportViewer.
My ask is:
I suppose that in the Class Employee there is an attribute object for example City.
class City
{
private string _city;
public City(string c)
{ _city = c; }
public string city { get, set }
}
So
m_employees.Add(new Employee("Mahesh Chand", "112 New Road, Chadds Ford, PA", "123-21-1212", 30, new City("London")));
How can i visualize "London" in a textbox into the table ?
perhaps =field!City.Value.city ?
=field!city.Value ?
escapes this step. Who is kind enought to explaind the logic ? thanks.
Important:
I use the reports rdlc (no Crystal Report) in Visual studio 2008