hi,
i have a DataGrid with a DataView as source. the data is read correctly from
the db and shown on screen.
the problem appears, when i want to add some rows to the grid.
first it adds them and the ListChangedEvent from the DataView raises and the
new values are shown correctly.
but if i then click on the save button (which calls the EndCurrentEdit and
Update methods), the DataView suddenly only has the original rows and the
new ones are lost.
then if i try again to add some values, they are lost imediately when i
leave the current row in the DataGrid.
there are no constraints, keys or other restrictions in the underlaying
DataTable.
a suggestion:
at first addition of the row there raises a strange second ListChangedEvent
after the ItemAdded. the ListChangedType is ItemMoved, then OldIndex equals
the current row and the NewIndex something like -23423435. is my problem
there?
thx for any help
netracer