This code is not working to insert a new record (row) to the database.Code:Dim row As DataRowView row = DirectCast(Me.Lista_utilizatoriBindingSource.AddNew, DataRowView) Me.dgv_utilizatori.CurrentRow.Cells(0).Value = Me.txt_nume_utilizator.Text ... ... Me.dgv_utilizatori.CurrentRow.Cells(16).Value = Me.txt_ultima_autentificare.Text Me.dgv_utilizatori.CurrentRow.Cells(17).Value = Me.txt_data_inregistrare.Text Me.Lista_utilizatoriBindingSource.EndEdit() Me.Lista_utilizatoriTableAdapter.Update(Me.Utilizatori_DataSet.lista_utilizatori)
It's modifying me the current row selected.
What's wrong ?




Reply With Quote