471,086 Members | 1,097 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,086 software developers and data experts.

How does DataBinding work?

When I click on the DataBinding in the properties window a list of options
open up called Advanced,Tag and Text. I would like to know what Tag and Text
are set to? I hope to Bind a text box to a Access database in my program.
--
I am a Noob!
Thanks for the Help :)
Nov 21 '05 #1
2 1652
Shane,

Did you do everything,
(creating the databaseconnection, dataset and dataadapter) using the
designer?

Than you can take the text property from the bindings and click on the +
from the dataset until you find the proper field.

In your load event you can than place something as:
Me.SqlDataAdapter1.Fill(Me.DataSet11)

I hope this helps?

Cor

When I click on the DataBinding in the properties window a list of options
open up called Advanced,Tag and Text. I would like to know what Tag and Text are set to? I hope to Bind a text box to a Access database in my program.
--
I am a Noob!
Thanks for the Help :)

Nov 21 '05 #2
Shane,

You did the connection stuff, however for this question it is important to
know what parts of the designer you did use. You can do almost everything
with the designer and use completly nothing. That is important for the
databinding when using the designer, a normal databinding done in code is.

textbox1.DataBindings.Add(New Binding("Text", dataset1.Tables(0),
"LastName"))

The text part is your Text property from your control which can as well by
the Tag property from that when you want other properties you can use the
advanced property tab from the designer.

I hope this answers your question so far?

Cor
Thanks for the Reply Cor,
Yes I have already done the connection stuff. I just need help understanding how to update a database by using a txtBOX. I can update the database by
using a Upload button, but that is not what I was hoping to do. I know that I have to Bind the txtBOX to the access data table but I really don't
understand what Tag and Text are used for.

"Cor Ligthert" wrote:
Shane,

Did you do everything,
(creating the databaseconnection, dataset and dataadapter) using the
designer?

Than you can take the text property from the bindings and click on the +
from the dataset until you find the proper field.

In your load event you can than place something as:
Me.SqlDataAdapter1.Fill(Me.DataSet11)

I hope this helps?

Cor

When I click on the DataBinding in the properties window a list of options open up called Advanced,Tag and Text. I would like to know what Tag and
Text
are set to? I hope to Bind a text box to a Access database in my

program. --
I am a Noob!
Thanks for the Help :)


Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by louise raisbeck | last post: by
9 posts views Thread by Dennis | last post: by
8 posts views Thread by GaryDean | last post: by
reply views Thread by Wayne Sepega | last post: by
14 posts views Thread by Anoop | last post: by
6 posts views Thread by Dmitry Duginov | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.