title: ng-grid original row index
body: <p>I am customizing a cell template in ng-grid. In that cell, I want to have a button that will trigger some event that needs the row index into the original data array. The template looks like this:</p>
  
  <pre><code>&lt;button class="btn" ng-click="removeItem(row.rowIndex)"&gt;
    &lt;i class="icon-remove"&gt;&lt;/i&gt;
  &lt;/button&gt;
  </code></pre>
  
  <p>and <code>removeItem</code> is implemented like this:</p>
  
  <pre><code>$scope.removeItem = function(rowIndex) { $scope.myList.splice(rowIndex, 1) }
  </code></pre>
  
  <p>This works until I re-sort the grid by clicking on one of the columns. Apparently, rowIndex the visual index of the row, and not the index of the row in the array I supplied.</p>
  
  <p>Is there a way to obtain the actual index?</p>