private void btnDelete_Click(object sender, EventArgs e) { AccountGroupModel objAccount = new AccountGroupModel(); objAccount.GroupId = groupId; bool isDelete = objaccbl.DeleteAccountGroupById(groupId); if (isDelete) { MessageBox.Show("Delete Successfully!"); ClearControls(); groupId = 0; Administration.List.AccountgroupList frmList = new Administration.List.AccountgroupList(); frmList.StartPosition = FormStartPosition.CenterScreen; frmList.ShowDialog(); FillAccountGroupInfo(); } }