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);
}
}
}