M
Martin Z
I'm just learning ADO.NET 1.1 and I'm getting some real stinkers.
I've got a wonderful screwup going on - I'm loading my datatable with a
new datarow. I used BeginLoadData before I added the row because I
need to bind to that row in the datatable. I the use "BeginEdit" on
the row so that I can leave a mark to cancel back to later if
necessary, and make the changes to the row, and then I call "EndEdit"
on the datarow to validate the changes.
As expected for the garbage data I entered in, it throws a
DataException. What blows my mind is that it DOESN'T set the HasErrors
information, or any other error info. So I have nothing but the
friggin' exception to show the user. What do I do? How do I work with
a databound datarow in such a way that I can get useful error info?
I've got a wonderful screwup going on - I'm loading my datatable with a
new datarow. I used BeginLoadData before I added the row because I
need to bind to that row in the datatable. I the use "BeginEdit" on
the row so that I can leave a mark to cancel back to later if
necessary, and make the changes to the row, and then I call "EndEdit"
on the datarow to validate the changes.
As expected for the garbage data I entered in, it throws a
DataException. What blows my mind is that it DOESN'T set the HasErrors
information, or any other error info. So I have nothing but the
friggin' exception to show the user. What do I do? How do I work with
a databound datarow in such a way that I can get useful error info?