by Dinesh Thakur Category: DataBase

Data control

Data-bound

Using data control is a two-step process. First you place a data control on a form and set the properties to link it to a database file and table

You create the controls, such as labels and text boxes, to display the actual data. Each control is a bound to particular field in the table. In this example the label is called a data bound control and automatically displays the contents of bound field when the project runs.

Data control generally links one form with one table.

If you want to have data-bound controls on second form, you must place a data control on that form.

Prefix of data control is “dat”

For data-bound control prefix depends upon the control which you are using.

Data control to work you need to set some properties to connect with database like connect property, database name property, record source property.

To display data on the data-bound control that you are using like labels or textboxes. You need set it?s data source property and data field name which is column name form the table.

 

 



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.