D
Dave Combs
Hi,
I've looked around, found nothing, and was wondering if
anybody had encountered the following problem.
I've got a DataView on which I set Sort = "name ASC".
That's fine--I've verified that the underlying DataTable
has all the rows in the original (unsorted) order, and
the rowViewCache in the DV has everything sorted and all
items refer to the right DT indexes. Then I add a
record to the DV that should end up in the middle of the
sorted list (i.e. at position 8 of 9 in the DV.) What
I've found is that when the DataTable adds the record
on 'EndEdit', rather than putting the record at the end
of the DataTable and inserting an item at position 8 in
the DV, it adds the record at position 8 in the DataTable,
but does nothing with the DataView. This means that now
two items in the DV are pointing at index 8 in the
DataTable, which is of course wrong. Anybody seen this
before, and have an idea how to get around it?
Thanks!
Dave Combs
I've looked around, found nothing, and was wondering if
anybody had encountered the following problem.
I've got a DataView on which I set Sort = "name ASC".
That's fine--I've verified that the underlying DataTable
has all the rows in the original (unsorted) order, and
the rowViewCache in the DV has everything sorted and all
items refer to the right DT indexes. Then I add a
record to the DV that should end up in the middle of the
sorted list (i.e. at position 8 of 9 in the DV.) What
I've found is that when the DataTable adds the record
on 'EndEdit', rather than putting the record at the end
of the DataTable and inserting an item at position 8 in
the DV, it adds the record at position 8 in the DataTable,
but does nothing with the DataView. This means that now
two items in the DV are pointing at index 8 in the
DataTable, which is of course wrong. Anybody seen this
before, and have an idea how to get around it?
Thanks!
Dave Combs