public void onClick(BaseItem item, EventObject e) {
removeSelectedRows(grid);
}
}));
grid.addGridListener(new GridListenerAdapter() {
public void onKeyPress(EventObject e) {
int k = e.getKey();
if (k == KeyCodes.KEY_DELETE || k == KeyCodes.KEY_BACKSPACE) {
removeSelectedRows(grid);