[dba-VB] Data Binding values from code

Charlotte Foust cfoust at infostatsystems.com
Thu Mar 13 10:19:32 CDT 2008


By the way, doesn't Me.textbox.Value = "something" work?  If the dataset
is dirty, you update it.  I feel somehow that I'm missing the point of
the question.  Are you using a bindingnavigation control or what?

Charlotte Foust

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael
Maddison
Sent: Wednesday, March 12, 2008 11:17 PM
To: Discussion concerning Visual Basic and related programming issues.
Subject: Re: [dba-VB] Data Binding values from code

And the answer seems to be,
if you use the built in stuff, you don't.
You don't seem to be able to let the bindingsource know that the data
has changed.

I ended up doing a direct insert.

cheers

Michael M

Hi,

I've gone to databinding hell...
How do I change a value IN CODE in a textbox on a form and get it to be
written back to the db?

Using Dataset, BindingSource and TableAdaptor.

Typing in the textbox works just fine...

cheers


Michael M

_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com


_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com


_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com





More information about the dba-VB mailing list