# C1.Web.Mvc.BaseCollectionViewService-1.NewItemIndex

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_BaseCollectionViewService_1_NewItemIndex_" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.NewItemIndex*">NewItemIndex Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_BaseCollectionViewService_1_NewItemIndex_" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.NewItemIndex*"></a>
<h4 id="C1_Web_Mvc_BaseCollectionViewService_1_NewItemIndex" data-uid="C1.Web.Mvc.BaseCollectionViewService`1.NewItemIndex">NewItemIndex</h4>
<div class="markdown level1 summary"><p>Gets or sets the zero-based index that FlexGrid's new row template uses when inserting new items.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual int NewItemIndex { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Property NewItemIndex As Integer</code></pre>
</div>
<h5 id="C1_Web_Mvc_BaseCollectionViewService_1_NewItemIndex_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The index is honored only when sorting, filtering and grouping are inactive; any of those view transforms overrides the insertion position and the item is appended to the end of the source collection. When paging is enabled, values in the range 0..PageSize - 1 map to positions within the current page, while values less than zero or greater than or equal to PageSize keep the original add-new behavior. When paging is disabled, non-negative values are treated as positions within the full source collection. The default value for this property is <strong>-1</strong>.</p>
</div>
</div>
