C# DataGridView.DataSource 使用和不使用 BindingSource 的区别
我发现我可以直接将 DataGridView.DataSource 设置为 DataTable,而无需在中间使用 BindingSource,这是我迄今为止看到的所有教程都使用的方法。那么这两者有什么区别呢?
I found that I can just set the DataGridView.DataSource directly to the DataTable without using the BindingSource in between, which is what all of the tutorials I've seen so far are using. So what is the difference between these two?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有一些关于 BindingSource 的使用如何改进直接绑定到 DataTable 的旧方法的信息。
http://msdn.microsoft.com/en-us/library/aa480734.aspx总结
:
Some information here on how the use of a BindingSource is an improvement to the old way of binding directly to a DataTable.
http://msdn.microsoft.com/en-us/library/aa480734.aspx
In summary: