title: Adding new row with calculative field in ng-grid
body: <p>I am facing problem adding a new row with calculative field in ng-grid.</p>
  
  <p>Html Code..</p>
  
  <pre><code>&lt;div class="costsheetGrid" ng-controller="costsheetGridController"&gt;
          &lt;p&gt;
              &lt;a class="btn btn-lg btn-primary" ng-click="addAnotherRow()" href="javascript:void(0);"&gt;Add Another Row&lt;/a&gt;
          &lt;/p&gt;
          &lt;div class="gridStyle" ng-grid="gridOptions"&gt;
          &lt;/div&gt;
      &lt;/div&gt; 
  </code></pre>
  
  <p>Javascript Code..</p>
  
  <pre><code>$scope.gridData = [
              {
                  'Consumption': '100',
                  'ConversionQuantity': '3',
              }
          ];
  
  angular.forEach($scope.gridData, function (row) {
                  row.getActualConsumption = function () {
                      return row.Consumption / row.ConversionQuantity;
                  };
              });
  
  $scope.gridOptions = {
              data: 'gridData',
              enableCellSelection: true,
              enableRowSelection: false,
              enableCellEditOnFocus: true,
              columnDefs: [
  
              { field: "Consumption", displayName: "Consumption", width: 100 },
  
              { field: "ConversionQuantity", displayName: "Conversion Quantity", width: 120 },
              { field: "getActualConsumption()", displayName: "Actual Consumption", width: 120, enableCellEdit: false }
          ]
          };
  
  $scope.addAnotherRow = function () {
              $scope.gridData.push({
                  'Consumption': '',
                  'ConversionQuantity': '',
              });
          };
  </code></pre>
  
  <p>This code works perfectly when i change Consumption or ConversionQuantity in first row of grid and it calculates the Actual Consumption. When i click the "Add Another Row" button it adds a new row but when i insert Consumption or ConversionQuantity in second row then it cant calculate the Actual Consumption. </p>
  
  <p>So, how can i achieve this? </p>