Esempio n. 1
0
        private void dgvDanhSachSinhVien_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            string maSV = dgvDanhSachSinhVien
                          .Rows[e.RowIndex].Cells[0]
                          .Value.ToString();
            SinhVien svSua =
                SinhVien.SinhVienById(maSV);

            // luu thông tin sinh vien can sua
            SinhVien.SetSinhVienSua(svSua);
            Form fSuaSV = new formSuaSinhVien();

            var isOk = fSuaSV.ShowDialog();

            if (isOk == DialogResult.OK)
            {
                ResetDanhSachSinhVien();
            }
        }