hi.. i'm new to VB.Net, so i think this is one stupid question...
but i just can't get over it....
I want my database to view in DataGridView..
this had done by just dragging the the database into the form i created in VB..
i had enable Adding, Editting and Deleting...
and VB automaticly produce this code for me..
CODE
Public Class Form1
Private Sub CustomerBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CustomerBindingNavigatorSaveItem.Click
Me.Validate()
Me.CustomerBindingSource.EndEdit()
Me.CustomerTableAdapter.Update(Me.CustomerDataSet.Customer)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'CustomerDataSet.Customer' table. You can move, or remove it, as needed.
Me.CustomerTableAdapter.Fill(Me.CustomerDataSet.Customer)
End Sub
End Class
i had refer to many example...
this type of code should enable adding, edtting and deleting...
it do...
and I had try to delete, add and edit my database..
and save it after that...
but after i re-run my program..
the data i changed are not there...
i use SQL Server Xpress and VB 2005
what should I do..?
plz help......
thanks