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

问题描述

我创建了一个设置数据视图的表单。表单使用货币管理器一次查看一个

记录。这很好用。所有我的

文本框都绑定了。


但是我有一个组合框可以从另一个获取其查找值

(广告)表(AdvertisingID,广告)。这可以工作

..然而,当它加载形式

时它不能正常工作,组合框应该绑定到AdvertisingID字段并且

显示相应的数据。


当表单加载组合框时,只显示一个空白。如果我

选择组合框,查找表中的所有值都在那里。

但是为什么在表单加载时它不显示值。


请帮忙。这已经让我疯了三天了。

只是无法弄清楚问题是什么。


我会发布我的代码: -


创建数据视图和货币管理器: -


Richard

I have created a form which sets up a dataview. The form views one
record at a time using a currencymanager. This works fine. All my
text boxes bind.

However I have a combo box which gets its lookup values from another
(Advertising) table (AdvertisingID, Advertising). This works
.. However, where it doesn''t work as well is when the form
loads, the combo boxes should bind to the AdvertisingID field and
display the respective data.

When the form loads the combo box only displays a blank. If I
select the combo box all the values from the lookup table are there.
But why doesn''t it display the value when the form loads.

Please help. This has been driving me nuts for three days already and
just cannot figure out what the problem is.

I''ll post my code:-

Creating the dataview and currency manager:-


Richard

推荐答案









这篇关于组合框绑定问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 12:29