Dojo dgrid updating a row
<p>I have a dgrid that populates from a dojo/request:</p>

<pre><code>var TrackableMem = declare([Memory, Trackable]);
var store = new TrackableMem({
    data : resp.results
});
</code></pre>

<p>This grid has a few columns that are textboxes. When they are changed, I would like to confirm the user actually wants to edit them:</p>

<pre><code>grid.on("dgrid-datachange", function(evt) {
    if(!confirm("change this field?")) {
         // revert cell value back to the old one.
         grid.get("collection").get(evt.cell.row.id).notes = evt.oldValue;
         grid.refresh();
    } else {
        // do ajax call here.....
    }
}
</code></pre>

<p>This does not work, the new updated value stays there, but when I run the same exact thing in the developer console it does work:</p>

<pre><code>grid.get("collection").get(0).notes = "testing";
grid.refresh();
</code></pre>

<p>Any ideas? evt.cell.row.id &amp; evt.oldValue are correct values.</p>