Usando OleDbDataAdapter para atualizar um DataTable C #

Eu tenho tentado usarOleDbDataAdapter para atualizar umTabela de dados mas ficou confuso sobre os comandos. Como às vezes recebo informações de diferentes tabelas, não posso usar um CommandBuilder. Então eu tentei criar os comandos no meu on mas achei difícil com os parâmetros. DataTable.GetChanges retorna linhas que precisam usar um comando INSERT ou UPDATE - acho que não consigo distingui-las. Eu preciso que você complete o seguinte:

<code>DataTable dt = new DataTable();
OleDbDataAdapter da = new OleDbDataAdapter();
// Here I create the SELECT command and pass the connection.
da.Fill(dt);
// Here I make changes (INSERT/UPDATE) to the DataTable (by a DataGridView).
da.UpdateCommand = new OleDbCommand("UPDATE TABLE_NAME SET (COL1, COL2, ...) VALUES (@newVal1, @newVal2, ...) WHERE id=@id"); // How can I use the values of the current row (that the da is updating) as the parameters (@newVal1, @newVal2, id....)?
</code>

Muito obrigado!

questionAnswers(2)

yourAnswerToTheQuestion