/// <summary> /// Deletes the status. /// </summary> /// <param name="s">The s.</param> /// <param name="e">The <see cref="System.Web.UI.WebControls.DataGridCommandEventArgs"/> instance containing the event data.</param> protected void grdIssueTypes_Delete(Object s, DataGridCommandEventArgs e) { var id = (int)grdIssueTypes.DataKeys[e.Item.ItemIndex]; string cannotDeleteMessage; if (!IssueTypeManager.Delete(id, out cannotDeleteMessage)) { ActionMessage.ShowErrorMessage(cannotDeleteMessage); return; } BindIssueType(); }