G
Guest
I have a test bed of code that I am using to isolate this situation. There is a bit of code involved, so I'll try posting a narrative description first.
1) I have a strongly typed dataset called OrdersDS
2) I have inherited from this dataset to extend it - the new class is called OrdersDSExt
3) In the constructor of OrdersDSExt, I add an event handler to the ORDERS datatable for the RowChanged event
4) In the event handler, I check the value of the ORDERAMT column to be sure it is >=0. If it is < 0, I throw an exception.
Here's the problem: the exception occurs BUT it is not propagated up the stack so the "naughty" code has no idea a problem has occurred. What am I missing here?
1) I have a strongly typed dataset called OrdersDS
2) I have inherited from this dataset to extend it - the new class is called OrdersDSExt
3) In the constructor of OrdersDSExt, I add an event handler to the ORDERS datatable for the RowChanged event
4) In the event handler, I check the value of the ORDERAMT column to be sure it is >=0. If it is < 0, I throw an exception.
Here's the problem: the exception occurs BUT it is not propagated up the stack so the "naughty" code has no idea a problem has occurred. What am I missing here?