private void TaiKhoan_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) { btMK.Enabled = false; try { id_ = int.Parse(TaiKhoan.GetFocusedRowCellValue("id").ToString()); txtHoten.Text = TaiKhoan.GetFocusedRowCellValue("HoTen").ToString(); txtTaiKhoan.Text = TaiKhoan.GetFocusedRowCellValue("userName").ToString(); if (int.Parse(TaiKhoan.GetFocusedRowCellValue("phanQuyen").ToString()) == 1) { cbNhom.SelectedIndex = 0; } else { cbNhom.SelectedIndex = 1; } txtThongTin.Text = TaiKhoan.GetFocusedRowCellValue("thongTin").ToString(); } catch (Exception) { } }