Your Link:
http%3A%2F%2Fdobon.net%2Fvb%2Fdotnet%2Fdatagridview%2Fcellvalidating.html