protected internal virtual void OnRowPropertyChanged(RowEventArgs e)
{
if (this.CanRaiseEvents)
{
if (e.EventType == RowEventType.ExpandSubRowsChanged)
{
// This changes the whole table
this.Invalidate();
UpdateScrollBars();
}
else
{
// These events just change the row itself
this.InvalidateRow(e.Index);
if (RowPropertyChanged != null)
{
RowPropertyChanged(e.Row, e);
}
}
}
}