R
Rod
I can't believe I am struggling with this, but I am.
I have a form with the controls bound to a DataView.
The form has an "add" button which is meant to add a new row.
I do this with the code below
_______________________
Dim newDataRowView As DataRowView = MembersDataView.AddNew
newDataRowView("Date Joined") = DateTime.Today
newDataRowView.EndEdit()
newDataRowView = Nothing
_______________________
I was hoping to see a blank form appear, but no.
If I go through all the records there is no evidence of the new row.
The Currency Manager does not admit to there being an extra row. (ie count
is unchanged)
Something has changed because when I use the Data Adapter to update the
source database the program crashes.
Any help very much appreciated.
Rod
I have a form with the controls bound to a DataView.
The form has an "add" button which is meant to add a new row.
I do this with the code below
_______________________
Dim newDataRowView As DataRowView = MembersDataView.AddNew
newDataRowView("Date Joined") = DateTime.Today
newDataRowView.EndEdit()
newDataRowView = Nothing
_______________________
I was hoping to see a blank form appear, but no.
If I go through all the records there is no evidence of the new row.
The Currency Manager does not admit to there being an extra row. (ie count
is unchanged)
Something has changed because when I use the Data Adapter to update the
source database the program crashes.
Any help very much appreciated.
Rod