/// <summary>
 /// Clear the errors if edits are canceled
 /// </summary>
 /// <param name="sender">The sender of the event</param>
 /// <param name="e">The event arguments</param>
 private void dnNav_CanceledEdits(object sender, DataNavigatorEventArgs e)
 {
     epErrors.Clear();
 }
 /// <summary>
 /// Enable the bound controls when a row exists
 /// </summary>
 /// <param name="sender">The sender of the event</param>
 /// <param name="e">The event arguments</param>
 private void dnNav_AddedRow(object sender, DataNavigatorEventArgs e)
 {
     if(pnlData.Enabled == false && dnNav.AllowEdits == true)
     {
         pnlData.Enabled = true;
         lblAddRow.Visible = false;
         dlPhones.Enabled = true;
     }
 }
        /// <summary>
        /// This raises the <see cref="Current"/> event
        /// </summary>
        /// <param name="e">The event arguments</param>
        protected virtual void OnCurrent(DataNavigatorEventArgs e)
        {
            var handler = Current;

            if(handler != null)
                handler(this, e);
        }
        /// <summary>
        /// This raises the <see cref="CanceledEdits"/> event
        /// </summary>
        /// <param name="e">The event arguments</param>
        protected internal virtual void OnCanceledEdits(DataNavigatorEventArgs e)
        {
            var handler = CanceledEdits;

            if(handler != null)
                handler(this, e);
        }
        /// <summary>
        /// This raises the <see cref="DeletedRow"/> event
        /// </summary>
        /// <param name="e">The event arguments</param>
        protected virtual void OnDeletedRow(DataNavigatorEventArgs e)
        {
            var handler = DeletedRow;

            if(handler != null)
                handler(this, e);

            if(listManager != null && listManager.Count == 0)
                OnNoRows(EventArgs.Empty);
        }
        /// <summary>
        /// This raises the <see cref="AddedRow"/> event
        /// </summary>
        /// <param name="e">The event arguments</param>
        protected virtual void OnAddedRow(DataNavigatorEventArgs e)
        {
            var handler = AddedRow;

            if(handler != null)
                handler(this, e);
        }