我写的数据绑定控件在绑定数据源时出错。我将[Text]属性设置为数据绑定属性将控件加入工程中,如果在窗体设置时将DataSource属性设置为[ADODC1]控件代码没有问题,可以进行数据绑定,
但在代码运行时
Form_Load()
Dim Rs As RecordSet...(数据连接)SET Ctl.DataSource = Rs(出错了)
[错误信息:Method or data member not find]
EndData Binding属性中设置如下
√ Property is data bound
√ this property binds to datafield
show in databindings collection at design time
√ property will call canpropertychange before changing
√ update immediate小弟实在是不知道错在哪里?望各位指教
但在代码运行时
Form_Load()
Dim Rs As RecordSet...(数据连接)SET Ctl.DataSource = Rs(出错了)
[错误信息:Method or data member not find]
EndData Binding属性中设置如下
√ Property is data bound
√ this property binds to datafield
show in databindings collection at design time
√ property will call canpropertychange before changing
√ update immediate小弟实在是不知道错在哪里?望各位指教
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货