The validation function is very complex involving data checking against other DB tables and is more than 300 lines of code and in addition checks field values of other rows in the grid's bound dataset.
So that is why I am looking for a method to cancel the row change change.
Can the Javascript you are thinking of be run when my procedure returns it's result.