This is a migrated thread and some comments may be shown as answers.

The DELETE statement conflicted with the REFERENCE constraint

2 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Louis Bouchard
Top achievements
Rank 1
Louis Bouchard asked on 14 May 2010, 09:07 PM
Hello,

I got a another table related to records in my RadGridView (with Integrity referential).  WHen I try to delete one, I got this message :

The DELETE statement conflicted with the REFERENCE constraint...

Where in my Silverlight application (event with DomainDataSource, RadGridView, etc) I can manage this error and display a nice message to my user? 

In App.xaml.cs the event Application_UnhandledExceptionand occur but I think this is not the best place to manage this error in a specific page.

Thank a lot

2 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 15 May 2010, 02:04 PM
Hello Louis Bouchard,

Please refer to this blog post, which illustrates how to handle errors gracefully. Also this one may be useful, which illustrates doing the same but without DomainDataSource.

Regards,
Stefan Dobrev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Louis Bouchard
Top achievements
Rank 1
answered on 16 May 2010, 03:33 PM
It's help.  Thanks a lot Stefan!
Tags
GridView
Asked by
Louis Bouchard
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Louis Bouchard
Top achievements
Rank 1
Share this question
or