HighTechTalks DotNet Forums  

Updating data with BindingSource

Dotnet Data Tools microsoft.public.dotnet.datatools


Discuss Updating data with BindingSource in the Dotnet Data Tools forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Vernon Peppers
 
Posts: n/a

Default Updating data with BindingSource - 04-03-2007 , 06:28 PM






I have a WinForm app that uses a SQL Express database. I created the
database in the Server Explorer, and set up a table. I created a form, and
added a dataset, tableadapter, and a bindingsource. I bound the
bindingsource to the dataset. I added textboxes, and bound the textboxes to
the bindingsource. When I run the program, I start by adding a new row.
Then I fill in the text boxes. After I close the program, there is the new
row in the table, but all the fields are null. How do I save the data to the
table?

Reply With Quote
  #2  
Old   
Luis Fernandes
 
Posts: n/a

Default Re: Updating data with BindingSource - 06-28-2007 , 09:30 AM






Probably you are building the application and every time you build it, the
database is being copied to the data directory
check if you are using a "user instance", and then check the properties for
the database and select another option.
for debugging proposes you can set "Do not copy" or "Copy if newer". the
default option is "Copy Always".

"Vernon Peppers" <VernonPeppers (AT) discussions (DOT) microsoft.com> escreveu na
mensagem news:20533047-7311-4DCB-A9C4-3F523C993317 (AT) microsoft (DOT) com...
Quote:
I have a WinForm app that uses a SQL Express database. I created the
database in the Server Explorer, and set up a table. I created a form,
and
added a dataset, tableadapter, and a bindingsource. I bound the
bindingsource to the dataset. I added textboxes, and bound the textboxes
to
the bindingsource. When I run the program, I start by adding a new row.
Then I fill in the text boxes. After I close the program, there is the
new
row in the table, but all the fields are null. How do I save the data to
the
table?


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.