You should create a class and add the code in its valid method. Never repeat the same code all over the place. In my opinion, you should not do it for grid's textboxes as well.
>If I have 15 textboxes and I wish to populate their valid events with the same text, can I highlight them all and paste the code in at once?
If it's not broken, fix it until it is.
My Blog