private void crystalReportViewer1_Load(object sender, EventArgs e) { TrayMaterialDeliveryTime TMDT = new TrayMaterialDeliveryTime (); DataSet ds = GetDs(); if (ds.Tables[0].Rows.Count != 0) { TMDT.SetDataSource(ds); crystalReportViewer1.ReportSource = TMDT; } }
private void crystalReportViewer1_Load(object sender, EventArgs e) { TrayMaterialDeliveryTime TMDT = new TrayMaterialDeliveryTime(); DataSet ds = GetDs(); if (ds.Tables[0].Rows.Count != 0) { TMDT.SetDataSource(ds); crystalReportViewer1.ReportSource = TMDT; } }