enableEditEvents is not working on subgrid

I want to edit a cell on single click or double click, I used enableEditEvents but it is not working.
I am loading my sub grid with xml returns from XYZ page.
Here is my code:

          MainGrid.attachEvent("onSubGridCreated", function (subGrid, rid, rindex) {
        subGrid.attachEvent("onEditCell", function () { return false });
        subGrid.setNumberFormat("$0.00", 0);
        subGrid.setNumberFormat("0", 1);
        subGrid.setNumberFormat("$0.00", 2);
        subGrid.enableEditEvents(true, true, false);
        subGrid.loadXML("XYZ.aspx?ID=" + ID, function () {
            subGrid.callEvent("onGridReconstructed", []);

Thanks in advance.

In your sub grid you’ve blocked the edit operations:
subGrid.attachEvent(“onEditCell”, function () { return false });