Datagrid / datatable constraint problem
I have a dataSet with 2 related tables.
I bind the 'Parent' Table to a datagrid.
I then Select a row in the datagrid and press the Delete
Key on the keyboard.
I get an InvalidConstraintException which crashes the
I was expecting the exception to be thrown because of the
Relationship between the tables, however I cannot find a
way to trap the the row deletion from the datagrid.
( I have tried code in the RowDeleting and RowDeleted
events of the table but to no avail - it almost seems as if it wants a Try...Catch
statement around the RowDeleting event )
Any ideas would be appreciated