且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么DataBinding在第二次不工作?

更新时间:2023-12-06 08:12:40

我看到这个错误当没有DataGridView涉及,但是我的数据源正在从另一个线程(顽皮!)更新,我的绑定格式为FormattingEnabled = false。改变这两个似乎解决了这个问题。

I have seen this error when no DataGridView is involved, but my data source was being updated from another thread (naughty!) and my binding had FormattingEnabled=false. Changing both of these seemed to fix the problem.