Does anyone know how to catch an exception which happens when you try to add line in database(SQL Server 2005) through binding navigator and DataGridView at the same time in VC++.