code: public void addElement(int iTargetPosition, Object bookmark, GridList gridList)
      {
          int iArrayIndex = this.bufferToArrayIndex(iTargetPosition);
          if (!this.inBufferArray(iTargetPosition))
              iArrayIndex = this.newBufferStartsAt(iTargetPosition, gridList);    // Add code to adjust the buffer to a new location
          m_aCurrentRecord[iArrayIndex] = bookmark;
          if (!this.inBufferList(iTargetPosition))
              m_iCurrentRecordEnd = iTargetPosition + 1;  // Logical size is this large
      }
docs: Add this record's unique info to current buffer.
  @param iTargetPosition The position to add the bookmark at.
  @param bookmark The bookmark to add.
  @param gridList The gridlist to update with this bookmark.