public void DeleteRow(int currentRow, int currentColumn) { var row = TableSource[currentRow] as ObservableCollection <CellContent>; if (row == null) { return; } TableSource.Remove(row); RepopulateChildren(TableSource); SelectColumn(currentRow, currentColumn); }