H
Hubert Wisniewski
Hi,
I have a problem with first record in my table. I put the data to the
table and it's ok, but if I add second row to the table the
first record is updated (and has the same value as the second row). I
use the same code for three tables in my application and it works
without any problem with this one exception. If I have the first item
the another I can add without any problem.
[
Dim drRows As DataRowCollection
Dim objNewRow As DataRow
drRows = VenusDataSet.pdmsap.Rows
objNewRow = VenusDataSet.pdmsap.NewRow()
objNewRow("dok") = RefTextBox.Text
drRows.Add(objNewRow)
Me.PdmsapBindingSource.EndEdit()
Me.PdmsapTableAdapter.Update(Me.VenusDataSet.pdmsap)
]
BR
Hubert
I have a problem with first record in my table. I put the data to the
table and it's ok, but if I add second row to the table the
first record is updated (and has the same value as the second row). I
use the same code for three tables in my application and it works
without any problem with this one exception. If I have the first item
the another I can add without any problem.
[
Dim drRows As DataRowCollection
Dim objNewRow As DataRow
drRows = VenusDataSet.pdmsap.Rows
objNewRow = VenusDataSet.pdmsap.NewRow()
objNewRow("dok") = RefTextBox.Text
drRows.Add(objNewRow)
Me.PdmsapBindingSource.EndEdit()
Me.PdmsapTableAdapter.Update(Me.VenusDataSet.pdmsap)
]
BR
Hubert