I have a aspdb grid with editing. The sql table it goes against has an index preventing duplicate values. It comes back with a ugly error when this happens. I want to trap this error and replace it with a nice message but I'm not sure how.

Thanks
jb