Re: [2005] Data grid errors
I see that you're using VB 2005. Do you really have a series of DataGrids or do you actually have a series of DataGridViews? The two are quite different so please be clear when posting. If you are using DataGrids then I would question why, because the DataGridView is superior in almost every way. Also, if you are using a DataGridView then that large, unfriendly message tells you what to do to avoid it and provide your own error message.
Re: [2005] Datagridview errors
i see it says to handle the data error event, but i don't know how to do this or where to place it in my code
Re: [2005] Data grid errors
It's just an event like any other, so you would create the event handler the same way you do any other event handler and you would put in the same place you do any other event handler. To create a handler for an event that is not the default you either use the Properties window and press the Events button or you use the drop-down lists at the top of the code window.
Once you have the empty method definition you simply add the code to do what you want. Like any event handler the 'e' parameter contains the data for the event. You should read the documentation for the DataGridView.DataError event and see what data that object provides and then decide how best to use it.