In attempting to use an arraylist of objects as the datasource for a form's
controls (in the same way I would ordinarily use a DataTable of DataRows), I
have discovered numerous issues. One is that the form doesn't seem to
update properly when I delete a "record" (which in this case is an object).
The CurrencyManager shows the correct new Position and Count, but the bound
controls continue to show the data for the deleted item. This remains true
even if I change the Position property (to the next, previous, last, or
first member of the arraylist), then restore it to where I want it (the
arraylist member one index number higher in the arraylist from the deleted
member).
Anyone have an explanation or workaround for that?
Another set of issues has to keeping up with what objects have been deleted
and inserted. Unlike with a DataTable, there's no RowState property to keep
up with that. I could add an ObjectState property to the object, but I'm
not sure how to update it for a deletion or insertion.
Suggestions?
Thanks!
--
j steele