XPTable.Models.TableModel.UpdateRowIndicies C# (CSharp) Method

UpdateRowIndicies() private method

Updates the Row's Index property so that it matches the Rows position in the RowCollection
private UpdateRowIndicies ( int start ) : void
start int The index to start updating from
return void
        internal void UpdateRowIndicies(int start)
        {
            if (start == -1)
            {
                start = 0;
            }

            for (int i=start; i<this.Rows.Count; i++)
            {
                this.Rows[i].InternalIndex = i;
            }
        }