예제 #1
0
        private void btnView_Click(object sender, EventArgs e)
        {
            string    rs = cbTenChuongTrinh.Text.Trim();
            DataTable dt = new DataTable();

            dt = bllChuongTrinh.findTenChuongTrinh(rs);
            Reports.rpChiTietCacMonHoc rp = new Reports.rpChiTietCacMonHoc();
            rp.SetDataSource(dt);
            ctrvChiTietCacMonHoc.ReportSource = rp;
        }
예제 #2
0
        private void btnView_Click(object sender, EventArgs e)
        {
            rs = cbTenChuongTrinh.Text.Trim();
            DataTable dt = new DataTable();

            dt = bllChuongTrinh.findTenChuongTrinh(rs);
            if (dt.Rows.Count > 0)
            {
                dgvDSCacMonHoc.DataSource = dt;
            }
        }