// Event private methods private void load_file_excel() { if (m_ofd_exel_file.ShowDialog() == System.Windows.Forms.DialogResult.OK) { try { // Reset lại ds mới nếu chọn lại file excel khác m_ds = new DS_DM_NHAN_SU(); m_lbl_loading_mes.Visible = true; CExcelReport v_excel_rpt = new CExcelReport(m_ofd_exel_file.FileName); m_ds.EnforceConstraints = false; v_excel_rpt.Export2DatasetDS_by_DucVT(m_ds, m_ds.DM_NHAN_SU.TableName, 2); m_fg.Redraw = false; //Gán DataSource //m_fg.DataSource = m_ds.DM_NHAN_SU; CGridUtils.Dataset2C1Grid(m_ds, m_fg, m_obj_trans); m_fg.Redraw = true; m_lbl_loading_mes.Visible = false; } catch (Exception v_e) { CSystemLog_301.ExceptionHandle(v_e); } } }