BindingSource remove current <p>I use BindingSource for deleting records in my forms:</p> <pre><code>try { BindingSource1.RemoveCurrent(); BindingSource1.EndEdit(); Table1TableAdapter.Update(dataSet01.Table1); } catch (Exception ex) { MessageBox.show(ex.Message); } </code></pre> <p>if record related to another,at first user see this record remove,but after that an error will arise. How can I prevent removing related record at first; so no error will be shown.</p>