Jump to content

Recommended Posts

Posted

Tenho uma datagridview que é preenchida pelo seguinte código

 
  Dim connString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "\gestdb.mdb;"
    
Private da As OleDbDataAdapter

    Private ds As DataSet
Dim connection As New OleDbConnection(connString)
        Dim SQL As String = "SELECT * FROM Precario"

        da = New OleDbDataAdapter(SQL, connection)
        ds = New DataSet
        da.Fill(ds, "Precario")
        Me.DataGridView1.DataSource = ds.Tables("Precario")
        connection = Nothing

End Sub

Agora eu gostava de guardar as alterações que o utilizador faz... alguem sabe?

PS: A Base de Dados é Access

Posted

nao... mas posso por sem problema.

tem de ser numeração automatica?

Sim, tem de ser.

Só através disso é que é possível saber que registo foi alterado e o que será gravado. Isto automáticamente é claro.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.