• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 567
  • Last Modified:

gridview position

I have a gridview which displays a long, long, long list of records. If i were to select a record from the middle of the gridview for edititng when i click on update or cancel the web page is scrolled to the top.

Is there a way in which I can tell my code that it needs to scroll down to the record which I was dealing with.
0
Mr_Shaw
Asked:
Mr_Shaw
  • 2
  • 2
1 Solution
 
angus_young_acdcCommented:
When you click the button to update the grid you could take the index of the currently active row before performing your update.  Then state after the update that the new active row is index Y.
0
 
Mr_ShawAuthor Commented:
i can't see anything in the intellisence which would allow me to set a new active row index
0
 
angus_young_acdcCommented:
There isn't one really.  You're just changing the index from the first row, to whatever row you want.  
0
 
Mr_ShawAuthor Commented:
thanks for your help...

the answer to my question is to use the page scroll position
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now