Information générale
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Network:
Windows 2003 Server
Kevin,
The new rows are appearing, they just wouldn't be in the sorted order. I had to click on the header to refresh the sort. I tried two methods for adding the data.
Method 1 - Adding the rows to the grid
Method 2 - Adding the rows to the datasource
I can get the sorting to work after a click on the headers to "activate" the sort.
I've narrowed it down to a specific scenario:
1. A grid (grid #1) with a few rows - the datasource is a filtered dataview that is sorted programatically on Column A. Grid #1 has no columns have been clicked for sorting.
2. I drag a few rows from another grid onto grid #1.
3. New rows are appended to the grid - sort refresh doesn't fire.
4. I click on Column A header -> sort indicator appears, column is sorted.
5. I drag a few more rows from the other grid, new rows get sorted correctly.
I've got a work around, but I was just wondering if I was missing something.
Thanks for your help!
Bob
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement