title: ui grid save updated cell data to database
body: <p>I am working on ui grid edit cell feature. I need to update the edited cell value to the database using rest api. Also how can i get the list of rows selected in controller.</p>
  
  <p>My working code</p>
  
  <pre><code>var app = angular.module('app', ['ngTouch', 'ui.grid', 'ui.grid.edit']);
  
      app.controller('MainCtrl', ['$scope', '$http', function ($scope, $http) {
        $scope.gridOptions = {  };
  
        $scope.gridOptions.columnDefs = [
          { name: 'id', enableCellEdit: false},
          { name: 'name' },
          { name: 'age', displayName: 'Age' , type: 'number', width: '10%' }
        ];
  
  
        $http.get('https://cdn.rawgit.com/angular-ui/ui-grid.info/gh-pages/data/500_complex.json')
          .success(function(data) {
            $scope.gridOptions.data = data;
          });
      }])
  </code></pre>
  
  <p><a href="http://plnkr.co/edit/kAQnXGTn12Z7v8w16RL9?p=preview" rel="nofollow noreferrer">Plunker</a> </p>