设计错误:无法绑定到属性或列"Column Name"在数据源上.参数名称:dataMember [英] Design Error: Cannot bind to the property or column "Column Name" on the DataSource. Parameter name: dataMember

查看:270
本文介绍了设计错误:无法绑定到属性或列"Column Name"在数据源上.参数名称:dataMember的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio中设计期间发生以下错误.尽管该绑定在运行时可以正常工作.

这是一个问题,因为我无法在Visual Studio中看到该表单,只是要防止可能的数据丢失...".


这是放置在_Load事件中的绑定

The following error occurs during design in Visual Studio. Although The binding works fine at runtime.

Its a problem because I am unable to see the form in visual studio, Just the "To prevent possible data loss...."


this is the binding placed in the _Load event

this.LastNameLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.employeeBindingSource, "LastName"));


我在这里做错什么了吗?        


我必须再次提及绑定在运行时确实可以正常工作.



Am I doing something wrong here?         


I must mention again the binding does work fine during runtime.


推荐答案

一切都很好,只需尝试在最后添加true即可.
Everything look fine, just try to add true at the end.


这篇关于设计错误:无法绑定到属性或列"Column Name"在数据源上.参数名称:dataMember的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆