private void OnRowInserted (Accessible sender, int row, int nInserted)
{
int newVal = element.accessible.QueryTable ().NRows;
AutomationSource.RaisePropertyChangedEvent (
element,
GridPatternIdentifiers.RowCountProperty,
newVal - nInserted,
newVal);
}