RemoveAt + Populate |
Post Reply |
Author | |
elmsoftware
Groupie Joined: 21 November 2006 Status: Offline Points: 23 |
Post Options
Thanks(0)
Posted: 13 September 2007 at 3:27pm |
Question Setup
When deleting a record from the ReportControl, I use the 'RemoveAt' method. When done with the 'RemoveAt's, I call the 'Populate' method as recommended by the ReportControl help.
rpt.Records.RemoveAt (Row.Record.Index)
rpt.Populate
When I have many rows in the ReportControl and the scrollbar has been scrolled down towards the bottom and I perform a 'delete' on a record using code similar to the above snippet, the Populate method refreshes the whole ReportControl with focus now on the top record. This is undesirable and not the typical user experience when working with lists/grids.
What I would like is for the ReportControl to Remove just the row that has been deleted and keep all previous rows visible just the way they were.
What is the recommended way of doing this?
All the best,
John
|
|
nighthawk
Senior Member Joined: 11 June 2004 Status: Offline Points: 167 |
Post Options
Thanks(0)
|
How about:
|
|
elmsoftware
Groupie Joined: 21 November 2006 Status: Offline Points: 23 |
Post Options
Thanks(0)
|
Thanks Nighthawk...much appreciated!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |