AtelierElieScripter.Lib.CustListView.BufferUpdateSortedRow C# (CSharp) Method

BufferUpdateSortedRow() public method

Updated sorted row only
public BufferUpdateSortedRow ( int index, int sortedIndex ) : void
index int Actual index in buffer
sortedIndex int Current sorted index
return void
        public void BufferUpdateSortedRow(int index, int sortedIndex)
        {
            int j = 0;
            this.BeginUpdate();
            for (int i = 0; i < bufferActiveColumns.Count; i++)
            {
                if (bufferActiveColumns[i])
                {
                    if (this.Items[sortedIndex].SubItems[j] != this.BufferItems[index].SubItems[i])
                        this.Items[sortedIndex].SubItems[j] = this.BufferItems[index].SubItems[i];
                    j++;
                }
            }
            this.EndUpdate();
        }