Home All Groups Group Topic Archive Search About

Problem with BindingSource and saving ...

Author
23 Nov 2007 9:40 AM
Yen
I created simple forms with wizard. From a DataSources I dragged table to
form. VB GDI created DataSet, BindingSource and BindingNavigator controls. I
code, I have for Save Button:

Me.Validate()
Me.DicInvSymBindingSource.EndEdit()
Me.DicInvSymTableAdapter.Update(Me.AfbDbDataSet.DicInvSym)

It run very good but when I stopping application and run it again (button
F5) I don't have added records. Records didn't save to disk.

Yen

Author
23 Nov 2007 3:16 PM
Kerry Moorman
Yen,

Could it be that you are actually updating a copy of your database? See:

http://msdn2.microsoft.com/en-us/library/ms246989.aspx

Kerry Moorman


Show quote
"Yen" wrote:

> I created simple forms with wizard. From a DataSources I dragged table to
> form. VB GDI created DataSet, BindingSource and BindingNavigator controls. I
> code, I have for Save Button:
>
> Me.Validate()
> Me.DicInvSymBindingSource.EndEdit()
> Me.DicInvSymTableAdapter.Update(Me.AfbDbDataSet.DicInvSym)
>
> It run very good but when I stopping application and run it again (button
> F5) I don't have added records. Records didn't save to disk.
>
> Yen
>
>
>
>

AddThis Social Bookmark Button