private void btnChiTiet_Click(object sender, EventArgs e) { FrmCTCongNoThu frm = new FrmCTCongNoThu(); int intSelect = dgvMatHang.SelectedRows[0].Index; string strTenKhachHang = dgvMatHang.Rows[intSelect].Cells[0].Value.ToString(); string strIDKhachHang = dgvMatHang.Rows[intSelect].Cells[0].Tag.ToString(); frm.lbDenNgay.Text = dtDenNgay.Value.ToShortDateString(); frm.lbTuNgay.Text = dtTuNgay.Value.ToShortDateString(); frm.lbKhachHang.Text = strTenKhachHang; frm.lbKhachHang.Tag = strIDKhachHang; frm.ShowDialog(); }