internal int[] InsertRecordToIndexes(DataRow row, DataRowVersion version)
{
int indexCount = LiveIndexes.Count;
int[] positionIndexes = new int[indexCount];
int recordNo = row.GetRecordFromVersion(version);
DataViewRowState states = row.GetRecordState(recordNo);
while (--indexCount >= 0)
{
if (row.HasVersion(version))
{
if ((states & _indexes[indexCount].RecordStates) != DataViewRowState.None)
{
positionIndexes[indexCount] = _indexes[indexCount].InsertRecordToIndex(recordNo);
}
else
{
positionIndexes[indexCount] = -1;
}
}
}
return positionIndexes;
}