dg.edatagrid('selectRow', i).edatagrid('beginEdit', i); var opts = dg.edatagrid("options"); opts.onEdit.call(this, i, rows[i]);