private int GetRecord(int index) { if (index < 0 || index >= Count) { throw new IndexOutOfRangeException(String.Format("There is no row at position {0}.", index)); } return((index == Index.Size) ? _lastAdded.IndexFromVersion(DataRowVersion.Default) : Index.IndexToRecord(index)); }