views:

12

answers:

0

I have a gridview bound to a linq data source. When I try and delete a row from the grid I get a FK reference contraint violation.

I'm not sure where/how to trap the foreign key exception.

I tried the GridView1_RowDeleting and the LinqDataSource1_Deleting event but I can't seem to trap it at that level.