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
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL