Thanks a lot for the reply. I tried this before, but I want the DataGrid to do the actual validation but I want to give a custom message. But in case of the solution you have specified, the DataGrid itself shows a MessageBox with a message which is not use friendly.