本文介绍了这样的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!
我基于访问权限使用C#编写.

=========错误消息开始=======
未处理System.InvalidOperationException
Message ="BindingSource不能是其自己的数据源.请不要设置
DataSource和DataMember属性的值引用回
BindingSource."
在System.Windows.Forms.BindingSource.get_Count()
在System.Windows.Forms.DataGridViewCell.GetValue(Int32 rowIndex)
在System.Windows.Forms.CyrrencyManager.get_Item(int32索引)
在System.Windows.Forms.DataGridView.DataGridViewDataCollection.GetValue(int32 boundCountIndex.int32列索引,int32行索引)
========错误消息结束===========
就是这样.我使用线程.

Hi Guys!
I write on C #, base on access.

=========start of error message=======
System.InvalidOperationException was unhandled
Message="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.DataGridViewCell.GetValue(Int32 rowIndex)
at System.Windows.Forms.CyrrencyManager.get_Item(int32 index)
at System.Windows.Forms.DataGridView.DataGridViewDataCollection.GetValue(int32 boundCountIndex. int32 columnindex, int32 rowindex)
========end of error message===========
As that so. I use thread.

推荐答案

arsendem写道:
arsendem wrote:

Message ="BindingSource不能是自己的数据源.请勿设置
DataSource和DataMember属性的值引用回
BindingSource."

Message="BindingSource cannot be its own data source. Do not set the
DataSource and DataMember properties to values that refer back to
BindingSource."



因此,我想您将DataSource设置为一个引用绑定源的值.您是否考虑过发布代码?



So I guess you set the DataSource to a value that refers back to the binding source. Did you consider posting your code ?


这篇关于这样的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 11:12