Charlotte Foust
cfoust at infostatsystems.com
Thu Mar 13 10:04:15 CDT 2008
Since you didn't post any code, just referred to dataset, bindingsource and tableadaptor, your chances of getting a definitive answer are low. There are so many ways to do things in dot net that a general question can either elicit an avalanche of different methods or no answer at all. Is the control bound to a field or unbound? Have you looked into BindingContext? Without seeing the code you're using, it's pretty difficult to do more than say "here's how *I* do it", and that doesn't help if *I* am not using the same combination of objects that you are. 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