在基于Windows的应用程序中从数据库中检索数据的组合框 [英] combo box that retrieve data from database in windows based application
问题描述
大家好,
我必须填充从基于Windows的应用程序中的数据库中检索数据的组合框。我有两个类型和CD的表。类型具有类型ID和类别。 CD具有类型ID作为外键。当我要添加新CD时,用户的用户界面将显示组合框以从组合框中选择类别,并且所选值应保存为类型ID。
首先,我在类型数据集中做了一个采石场,它将按类型ID进行搜索。
现在,我不知道如何使用这种方法填充CD界面中的类别组合框。
任何志愿帮我。
我不清楚你的问题。请简化它。
i想要从表中保存一个类型ID,从列表中选择相应的catagory。
plz指定你的问题。
尝试
i我不清楚您的问题。请简化它。
i想要从表中保存一个类型ID,从列表中选择相应的catagory。
plz指定你的问题。
尝试
我想你要从表中保存一个类型id,你选择了相应的catagory从列表中。
这就是我的意思。你理解正确
首先将类别从类型表绑定到组合框。
从catagory = combobox.text <表中选择typeid br />
将typeid分配给变量。
将typeid(变量)插入cd表。
试试吧现在
Hi all,
I have to populate combo box that retrieve data from database in windows based application. I have two tables which are type and CD. Type has type ID and Category. CD has type ID as foreign key. When I will add a new CD, the user interface for user will show combo box to choose the category from combo box and the selected value should be saved as type ID.
First, I did a quarry in type dataset that will do search by type ID.
Now, I don?t know how to use this method to populate the category combo box in CD interface.
Any volunteer to help me.
i am not clear with your problem. please simplify it.
i think you want to save a type id from the table which corresponding catagory you are selected from the list.
plz specify your question.
try
i am not clear with your problem. please simplify it.
i think you want to save a type id from the table which corresponding catagory you are selected from the list.
plz specify your question.
try
i think you want to save a type id from the table which corresponding catagory you are selected from the list.
This is what I mean. You understand correctly
first bind the category from the type table to combobox.
select the typeid from the table where catagory= combobox.text
assign the typeid to a variable.
insert the typeid(variable) into cd table.
try it now
这篇关于在基于Windows的应用程序中从数据库中检索数据的组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!