I get the following exception about 1 in 100 times. It does nothing to hinder my program at all from what I can see. What I need is the code to help me suppress this message or handle it myself, I have tried everything I have read in both help and searches and I can't seem to figure it out. So if anyone can help me out thanks in advance.

This is the error message.

The following exception occurred in your DataGridView:

System.InvalidOperationException: BindingSource cannot be its own data source. Do not set the DataSource and DataMember properties to values that refer back to BindingSource.
at System.Windows.Forms.BindingSource.get_Count()
at System.Windows.Forms.CurrencyManager.get_Item(Int32 index)
at System.Windows.Forms.DataGridView.DataGridViewDataConnection.GetError(Int32 boundColumnIndex, Int32 columnIndex, Int32 rowIndex)

To replace this default dialog please handle the DataError event.

please post your code

Is your app multithreaded -- do you create a new thread, use a timer, or a background worker? If so then all calls to your grid or its underlying datasource should be .Invoke() 'd instead of running on the non-gui thread.

If i'm way off track then I will wait to see the code you post :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.