if (e.getType() == Events.CellMouseDown) {
handleMouseDown((GridEvent) e);
} else if (e.getType() == Events.Refresh) {
refresh();
} else if (e.getType() == Events.BeforeEdit) {
GridEvent ge = (GridEvent) e;
selectCell(ge.getRowIndex(), ge.getColIndex());
} else if (e.getType() == Events.RowUpdated) {
onRowUpdated((GridEvent) e);
} else if (e.getType() == Events.ViewReady) {
if (selection != null) {
selectCell(selection.row, selection.cell);