Use CellValidating event
If validation fails, set e.cancel to true...