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