Handle constraint exceptions in datagrid
问题 I am busy adding database (SQLite) support to my latest application. Since there are some tables that has rows that reference rows in other tables I thought it might be a good idea to start using foreign key constraints. A few google searches later I was able to apply the constraints to one table as a test run. var c = workingDataSet.Tables["measurements"].Columns["reference_realestate"]; var p = workingDataSet.Tables["realestates"].Columns["id"]; ForeignKeyConstraint fkcon = new