I have made a data table and want to display its content on the crystal report viewer.
My data table has 2 columns but the report only shows
one column...
<code>
DataTable dtRecords;
dtRecords = new DataTable("Records");
dtRecords.Columns.Add(new DataColumn("Name", typeof(string)));
dtRecords.Columns.Add(new DataColumn("FullName", typeof(string)));
dtRecords.Rows.Add("aslam", "zia");
dtRecords.Rows.Add("hamad", "anwar");
CrystalReport1 cr = new CrystalReport1();
cr.SetDataSource(dtRecords);
crystalReportViewer1.ReportSource = cr;
</code>
I am using visual studio 2005 and c#