Add validation check for EndCellEdit

Added the option to disable the endCellEdit event when the new value entered for the cell is invalid.