private void update_dm_tu_dien() { try { m_grv_dm_tu_dien.EditIndex = -1; if (Page.IsValid) { if (this.m_hdf_id_dm_tu_dien.Value == "") { m_lbl_mess.Text = "Bạn phải chọn Từ điển cần Cập nhật."; return; } if (!check_validate()) { return; } form_2_us_object(); m_us_dm_tu_dien.dcID = CIPConvert.ToDecimal(this.m_hdf_id_dm_tu_dien.Value); m_us_dm_tu_dien.Update(); m_lbl_mess.Text = "Đã cập nhật bản ghi thành công."; clear_dm_tu_dien(); m_grv_dm_tu_dien.EditIndex = -1; load_data_2_grid(); } } catch (Exception v_e) { m_lbl_mess.Text = "Lỗi trong quá trình cập nhật bản ghi."; throw v_e; } }