这边走:
dojo.connect(grid,"onRowClick",function(event){
var items = grid.selection.getSelected();
dojo.forEach(items, function(selectedItem) {
if (selectedItem !== null) {
var id = grid.store.getValues(selectedItem, 'ID');
#whatever you want to do...
}
});
});