PC Review


Reply
Thread Tools Rate Thread

How does DataBinding work?

 
 
=?Utf-8?B?U2hhbmU=?=
Guest
Posts: n/a
 
      12th Aug 2004
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
 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      12th Aug 2004
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



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      12th Aug 2004
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

> >
> >
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does .NET property databinding work? cjard Microsoft C# .NET 2 11th Jun 2007 06:50 PM
How to get two-way databinding work in codebehind (2.0)? dieter@schuele.name Microsoft ASP .NET 1 23rd Nov 2005 10:14 AM
Databinding - Why Doesnt This Work? ECathell Microsoft VB .NET 2 18th Oct 2005 01:38 PM
Dataadapter and Databinding - Update doesn't work =?Utf-8?B?V29sZmdhbmc=?= Microsoft ASP .NET 0 10th Feb 2005 09:41 PM
question about datagrids and databinding -Am I making work for mys =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= Microsoft Dot NET Framework Forms 1 4th Nov 2004 05:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:57 PM.