i figured out why i get the concurrency error. it seems that when i do this code
vb Code:
myDatatable.DefaultView.AddNew()
i stay on the same rowindex after I click the AddNew which means when i try to clear the fields, it edits the currentrecord (which is an existing record) and not add the new record.
now to simplify the problem, i need to go the rowindex of the newly added row and make the changes there... unfortunately, im having a bit of a problem in doing this. using this codedoes me no good.vb Code:
Me.BindContext(myDatatable).Postion = myDatatable.DefaultView.Count
any other suggestions please... thanks.




Reply With Quote