如何在一个选项卡控件表单中获取更多表值 [英] How I Get More Tables Values In One Tab Control Form

查看:143
本文介绍了如何在一个选项卡控件表单中获取更多表值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



早上好,



我在该标签中创建了一个tabControl表单personaldetails,contactsdetails,educations等。 />


以及一个想要获得员工ID的绑定导航器。



我将如何得到所有表值一个tabcontrol表单。

i创建了一张员工表

和个人详细信息,contactsdetails等等。

如果表单加载我想获取所有信息表格



我想做什么?



提前感谢

Hi
Good Morning to all,

I create one tabControl form in that tab personaldetails,contactsdetails,educations etc.

and one binding Navigator on top that want get Employee id.

how i will get all tables values in one tabcontrol form.
i created one employee table
and personaldetails,contactsdetails,etc.
if form load i want to get all information in form

what i want to do?

thanks in advance

推荐答案

我现在没有安装VS,但我认为可以按如下方式完成。



添加绑定源导航器控件后,添加用于添加/编辑/查看数据库值的文本框。选择其中一个文本框并转到BindingSource属性并使用数据源配置向导 - 它应该为您的表单设置表适配器,DataSet和BindingSource。

现在,为每个文本框设置数据绑定属性,从绑定数据集中选择正确的字段(在文本框属性中)

将BindingSource控件绑定到数据集。
I don't have VS installed as of now, but I think it could be done as follows.

After adding the binding source navigator control, add the text boxes which will be used to add/edit/view values from the db. Select one of the textboxes and go the the BindingSource property and use the Data Source configuration Wizard - which should setup the Table Adapter, DataSet and BindingSource for your form.
Now, for each of the text boxes set the Data Binding property by selecting the correct field from the Binding dataset (in text box properties)
Bind the BindingSource Control to the Dataset.


这篇关于如何在一个选项卡控件表单中获取更多表值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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