0

I have vb.net application with MDF-Sql database.
I retrieves data from Table in MDF-Sql into datagridview by TableAdaptermanager/binding navifator. Although it displays data but when I want to save by this code, its not working.This code is working in vb.net with OleDb application but not here. Is there any another way to save/update data in datagridview.
My code is-

Public Class Form1

    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 'SatyamDataSet1.Accessonbook' table. You can move, or remove it, as needed.
        Me.AccessonbookTableAdapter.Fill(Me.SatyamDataSet1.Accessonbook)

    End Sub

    Private Sub AccessonbookBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AccessonbookBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.AccessonbookBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.SatyamDataSet1)

    End Sub
End Class
2
Contributors
1
Reply
16
Views
3 Years
Discussion Span
Last Post by samir_ibrahim
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.