public override DataSet Clone() { dtSach cln = ((dtSach)(base.Clone())); cln.InitVars(); return(cln); }
private void frmRptSach_Load(object sender, System.EventArgs e) { if (SqlHelper.ADAPTER != null) { dtSach myDataSet = new dtSach(); SqlHelper.ADAPTER.Fill(myDataSet, "QUYENSACH"); rptSach1 = new rptSach(); rptSach1.SetDataSource(myDataSet); ReportViewer1.ReportSource = rptSach1; } else { MessageBox.Show(this, "Không có dữ liệu", "Thong bao"); } }