Example   Source
  Menu  | 
<<
>>
 |  Run as  
DbNetGrid implements a number of events which will be invoked whenever a database operation fails. This provides the opportunity to return a more user friendly error message and/or to log the error. In this example any attempt to delete a record will result in an error due to relationship constraints within the database. The onRecordDeleteError event is used to provide a more user friendly message. The example also uses the onRecordInsertError to handle a duplicate Customer ID.