/// <summary>Handles the <see cref="GridView.RowDeleting"/> event of the <see cref="StatusesGridView"/> control.</summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="GridViewDeleteEventArgs"/> instance containing the event data.</param> private void StatusesGridView_RowDeleting(object sender, GridViewDeleteEventArgs e) { var statusId = GetStatusId(e.RowIndex); if (!statusId.HasValue) { return; } UserStatus.DeleteStatus(statusId.Value); this.BindData(); }