Adding elements to array problem
<pre><code>for(i=0;i&lt;rowData.length;i++){
    if(rowData[i].title == 'Gender'){
        AddMinusGenderImage.remove(AddMinusGenderImage);
        rowData.splice(i,1);
        tableview.data = rowData;
        break;
    }
}
</code></pre>

<p>After i remove the data and a new data to the array, it's getting added to array[1] instead of array[0]. why??</p>

<p><strong>Adding the Array Part</strong></p>

<p>I add array to element on the click of the button like this. On each click of button, the row is getting added to array.</p>

<pre><code>rowData.push(row);
</code></pre>

<p>row is an object, now it has a property title which i am checking and deleting the row. When i add another row, it's not taking the empty space instead creating a new array index.</p>
