private void gridStudentContent_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e) { DataRow currentRow = gridStudentContent.GetDataRow(e.RowHandle); if (true) { } if (grpChungChi.SelectedIndex == 0) { vHvID = currentRow["MAHOCVIEN"].ToString(); gridMarks.DataSource = boHv.search_Diem_ByHocVienId_1(vHvID); gridLop.DataSource = vLopTable(vHvID); } else if (grpChungChi.SelectedIndex == 1) { vHvID = currentRow["MAHOCVIEN"].ToString(); gridLop.DataSource = vLopTable(vHvID); gridMarks.DataSource = null; } }