ZForge.Controls.XPTable.Models.RowCollection.SetRow C# (CSharp) Method

SetRow() private method

Replaces the Row at the specified index to the specified Row
private SetRow ( int index, Row row ) : void
index int The index of the Row to be replaced
row Row The Row to be placed at the specified index
return void
        internal void SetRow(int index, Row row)
        {
            if (index < 0 || index >= this.Count)
            {
                throw new ArgumentOutOfRangeException("value");
            }

            if (row == null)
            {
                throw new ArgumentNullException("row cannot be null");
            }

            this.List[index] = row;

            row.InternalIndex = index;
        }