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#

Does it only see fullname?

no it displays "name" column only

plz help....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.