K
Ken Foskey
I have a total loss of how to actually add rows to an MS access table.
The addnew creates a row on the table but once EndEdit is called it
disappears. What am I missing.
DataRowView newRow = (DataRowView)DB.tblBallBindingSource.AddNew();
newRow.BeginEdit();
detDataSet.tblBallRow ball = (detDataSet.tblBallRow)newRow.Row;
ball.Timestamp = DateTime.Now;
....
// row exists here.
newRow.EndEdit();
// it is now gone.
The addnew creates a row on the table but once EndEdit is called it
disappears. What am I missing.
DataRowView newRow = (DataRowView)DB.tblBallBindingSource.AddNew();
newRow.BeginEdit();
detDataSet.tblBallRow ball = (detDataSet.tblBallRow)newRow.Row;
ball.Timestamp = DateTime.Now;
....
// row exists here.
newRow.EndEdit();
// it is now gone.