SQL从表到复选框 [英] SQL From table to checkbox
本文介绍了SQL从表到复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
首先,你好。我的问题是我有一个名字和金钱的表,我想从名称中选择信息到另一种形式的复选框。我无法发现代码是什么。你能帮助我吗?
So first of all, Hello. My problem is that i have a table with names and money, and i want to pick information from the names to some checkboxes in another form. I can''t discover what''s the code. Can you help me?
推荐答案
WinForms
步骤:
1)在表单上放置复选框
2)选中复选框后,转到属性
窗口(底部) - 右角)
3)展开属性(DataBindings)
并转到(高级)
属性
4)当光标在(高级)
属性中时,你应该看到[...]
按钮,点击它来调用格式化和高级绑定
窗口
5)找到绑定
组合框并展开它
6)选择添加项目数据源
并按照数据源配置的步骤操作向导
。
7)将数据绑定到数据源并按确定
按钮
8)毕竟,你会看到3个对象:DataSet
,BindingSource
和TableAdapter
现在您知道如何手动完成。在代码中做同样的事情;)
这就是全部!
WinForms
Steps to do:
1) place checkbox on the form
2) when checkbox is selected, go to theProperties
window (bottom-right corner)
3) expand property(DataBindings)
and go to(Advanced)
property
4) when cursor is in(Advanced)
property, you should see[...]
button, click it to callFormatting and Advanced Binding
window
5) findBinding
combobox and expand it
6) chooseAdd project data source
and follow the steps ofData Source Configuration Wizard
.
7) bind data to your data source and pushOK
button
8) after all, you''ll see 3 objects:DataSet
,BindingSource
andTableAdapter
Now you know how to do it manually. Do the same in code ;)
That''s all!
这篇关于SQL从表到复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文