示例#1
0
        /// <summary>Handles the <see cref="GridView.RowDeleting"/> event of the <see cref="StatusesGrid"/> 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 StatusesGrid_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            var statusId = GetStatusId(e.RowIndex);

            if (!statusId.HasValue)
            {
                return;
            }

            ApplicationStatus.DeleteStatus(statusId.Value);
            this.BindData();
        }