How to extend list of objects to automatically update property based on position in list
<p>Let's say I have a class Car like this:   </p>

<pre><code>class car 
{
string model;
int position;
}   
</code></pre>

<p>Position is a number from 1 to n, which basically reflects position in the list. 
if I have two cars in list they will have positions 1 2.
Now, I'd like to reorder those cars in list in the UI and reflect change in the property for later uses.<br>
So I have a table with several rows:   </p>

<pre><code>Car1  1  
Car2  2     
Car3  3   
Car4  4   
</code></pre>

<p>Now, If I want to reorder items I can drag Car4 and place it at position 2 (right after Car1).<br>
So, my positions will be as follows:   </p>

<pre><code>Car1  1  
Car4  2     
Car2  3   
Car3  4    
</code></pre>

<p>So, what I want to do is to update one item in the list, and all other items will be automatically updated.</p>
