I have a datagrid that connect to my sql relational database. When I pull up the table on my datagrid, if I try to delete a row that has a foreign key I get the error message
"the delete statement conflicted with the reference constraint.....the conflict occurred in database...."
How can I change this error message when someone is trying to unsuccessfully delete a row to something else such as:
"This row cannot be deleted since there are hours already for this user"