XPTable.Models.Table.OnRowRemoved C# (CSharp) Method

OnRowRemoved() protected method

Raises the RowRemoved event
protected OnRowRemoved ( TableModelEventArgs e ) : void
e TableModelEventArgs A TableModelEventArgs that contains the event data
return void
        protected internal virtual void OnRowRemoved(TableModelEventArgs e)
        {
            if (this.CanRaiseEvents)
            {
                this.PerformLayout();
                this.Invalidate();

                // Removing a parent row should also remove the child rows...
                // Fix (Colby Dillion)
                if (e.Row != null && e.Row.SubRows != null)
                {
                    foreach (Row row in e.Row.SubRows)
                    {
                        e.TableModel.Rows.Remove(row);
                    }
                }

                if (RowRemoved != null)
                {
                    RowRemoved(e.TableModel, e);
                }
            }
        }
Table