In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you "VB.NET how to achieve data binding", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "VB.NET how to achieve data binding" this article.
Data binding technology is the basic and the most important part of data programming with .net programming language. It is the basis of adding, deleting, browsing, modifying and other operations to the records in the database. Although the approach to data binding varies for different WinForm components, it is more or less the same in general.
In the whole VB.NET data binding, different components can be roughly divided into two categories, one is simple data binding, the other is complex data binding. Simple data is aimed at TextBox components, Label components, etc., and there is only one record displayed by bound components, while complex objects are ListBox components, TreeView components, etc., and there are often more records displayed after binding.
1. Data binding of TEXTBOX
TEXTBOX1.DataBindings.Add
(property name, dataset_system.Tables
(Company), dataset_system.
Tables ("Company") Columns.
Item (I) .Caption)
Second, ListBox is bound to the number of ComboBox
The three properties are "DataSource", "DisplayMember" and "ValueMember".
"DataSource" is the specified dataset
"DisplayMember" is the field value displayed by the ComBox component
"ValueMember" is the selected value of the ComBox component.
Me.ComboBox1.DataSource =
Dataset_system.Tables ("Table name")
Me.ComboBox1.DisplayMember = "Field name 1"
Me.ComboBox1.ValueMember = "Field name 2"
These are all the contents of the article "how to implement data binding in VB.NET". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.