long IUpdater.OldToNewRow(long a) { if (a < 0) { return(0); } if (m_Table.m_Fields.IsRowBaseGroup(a)) { return(m_Fields.GetBaseGroupRow()); } if (m_Table.m_Fields.IsRowStaticGroup(a)) { return(m_Fields.GetStaticGroupRow()); } a = m_Table.m_Fields.RowToFieldIndex(a); var f = m_Table.m_Fields.fieldIndices[a]; var newIndex = System.Array.FindIndex(m_Fields.fieldIndices, x => x == f); if (newIndex >= 0) { return(m_Fields.FieldIndexToRow(newIndex)); } return(-1); }