public void Edit() { DataRow dataRow = BaseInterfaceLogic.GetDataGridViewEntity(this.grdRole); if (dataRow != null) { FrmRoleEdit frmRoleEdit = new FrmRoleEdit(dataRow); if (frmRoleEdit.ShowDialog(this) == DialogResult.OK) { // this.grdRole.Refresh(); this.FormOnLoad(false); } } }