Groups | Blog | Home
all groups > dotnet datatools > april 2007 >

dotnet datatools : Updating data with BindingSource


Vernon Peppers
4/3/2007 3:28:02 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
Luis Fernandes
6/28/2007 2:30:39 PM
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@discussions.microsoft.com> escreveu na
mensagem news:20533047-7311-4DCB-A9C4-3F523C993317@microsoft.com...
[quoted text, click to view]
AddThis Social Bookmark Button