BindingSource.AddNew() causes constraintexception but new row is added anyway?

cjard

Well-known member
Joined
Apr 25, 2006
Messages
7,081
Programming Experience
10+
I'd have thought that if a constraint exception was thrown during the addition of a new row to a datatable, then the addition would fail. Instead it succeeds and leaves the datatable in an errored state. How do you guys handle this situation? How do you a) remove the row that is causing the error or b) prevent it from being added in the first place?
 
Back
Top