Apr 27, 2011, 8:20 AM
Re-number a 'RowNumbererColumn' after removing records from a store
Hi all,
I've been looking around on the forums and documentation but have been unable to find anything on this particular subject.
When using an <ext:RowNumbererColumn/> on a gridview it happily copes with inserting records to the grid/store and increments the row numbers to take account of the new row, which is perfect.
What I'm searching for, is a method to perform the same function when removing a record from the grid/store. At the moment when I remove a record from the middle of a list of items I end up with 1,2,4,5 for example.
I can happily provide an example of the logic I'm using to remove records if it's of any help, but to avoid confusing things I will hold off in the hope that there is a simple .Repaint() function or similar,
Any info on this one would be a great help,
Many thanks,
Doug
I've been looking around on the forums and documentation but have been unable to find anything on this particular subject.
When using an <ext:RowNumbererColumn/> on a gridview it happily copes with inserting records to the grid/store and increments the row numbers to take account of the new row, which is perfect.
What I'm searching for, is a method to perform the same function when removing a record from the grid/store. At the moment when I remove a record from the middle of a list of items I end up with 1,2,4,5 for example.
I can happily provide an example of the logic I'm using to remove records if it's of any help, but to avoid confusing things I will hold off in the hope that there is a simple .Repaint() function or similar,
Any info on this one would be a great help,
Many thanks,
Doug