Javascript error when selecting cell for edit

I am getting an exclamation mark at the botton of the IE7 browser. The javascript error given is
“Unexpected call to method or property access” I would like to fix this error even though my web page seems to function properly.
When I turn off edit mode, by removing "ordergrid.editCell();
", I don’t get the java script error

This is a section of the code that is giving this issue:

for (i = 0; i <searchResult.length; i++) {
var rowid1 = searchResult [i][0] - 1;
var cellind1 = searchResult [i][1];
ordergrid.selectCell(rowid1,7);
ordergrid.editCell();
found = true;
break;
}
return found;

Unfortunately the issue cannot be reconstrfucted locally.

Please provide more detailed sample to reconstruct the issue.