Beispiel #1
0
        private void dgv_AllSach_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int id = int.Parse(dgv_AllKM.Rows[e.RowIndex].Cells[0].Value.ToString());

            Makm                   = id;
            txt_MaKM.Text          = id.ToString();
            txt_TenKM.Text         = dgv_AllKM.Rows[e.RowIndex].Cells[1].Value.ToString();
            dtp_NgBatDauKM.Value   = DateTime.Parse(dgv_AllKM.Rows[e.RowIndex].Cells[2].Value.ToString());
            dtp_NgKetThucKM.Value  = DateTime.Parse(dgv_AllKM.Rows[e.RowIndex].Cells[3].Value.ToString());
            dgv_CTKM.DataSource    = ChiTietKMBLL.getCTKM(id).DataSource;
            btn_ThemSachKM.Enabled = false;
        }
Beispiel #2
0
 public void loadCTKM()
 {
     dgv_CTKM.DataSource = null;
     dgv_CTKM.DataSource = ChiTietKMBLL.getCTKM(Makm).DataSource;
 }