A
AWW
XP - VB 2005 - Sql Express 2005
I added data to a defined but empty dataset - reflected in a
datagridview.
I then followed the instructions in
http://msdn2.microsoft.com/en-us/library/xzb1zw3x.aspx
to write the code below:
-------------------------------------------------------------------
Me.CBOEdbDataSet.StocksMain.AcceptChanges()
Try
Validate()
' Me.StocksMainBindingSource.EndEdit()
Me.StocksMainTableAdapter.Update(Me.CBOEdbDataSet.StocksMain)
MsgBox("Update Worked")
Catch ex As Exception
MsgBox("Update Failed")
End Try
I added data to a defined but empty dataset - reflected in a
datagridview.
I then followed the instructions in
http://msdn2.microsoft.com/en-us/library/xzb1zw3x.aspx
to write the code below:
-------------------------------------------------------------------
Me.CBOEdbDataSet.StocksMain.AcceptChanges()
Try
Validate()
' Me.StocksMainBindingSource.EndEdit()
Me.StocksMainTableAdapter.Update(Me.CBOEdbDataSet.StocksMain)
MsgBox("Update Worked")
Catch ex As Exception
MsgBox("Update Failed")
End Try