I have coded the following:
$scope.gridOptions = {
data: \'myData\',
enableCellEdit: true,
multiSelect: false,
columnDefs: [
{ field: \'I
The way tosh shimayama are doing it, will not allow for sorting the table in any other order than the model array.
This is kind of an ugly way to do it, but I took a quick look in the source code for ng-grid and found that they use regexp to insert the ng-model. So by using the same variable, COL_FIELD, in your code you can make ng-grid insert the correct model.
Here is a plunker with a working example: http://plnkr.co/edit/Yj2qmI?p=preview