GridView EditButton: Automatically scroll down to row?

  • Thread starter Thread starter alonzo
  • Start date Start date
A

alonzo

Hi; I'm implementing a fairly simple database table editting form in
ASP.NET 2.0 using the gridview. I enabled AutoGenerateEditButton to
add row editting functionality. One little quirk I'd like to iron out:
when I click the edit button, the page is reloaded at the _top_ of the
page, instead of at the row I clicked. So if I click to edit the 200th
row, I have to scroll all the way down to it, which is a great big
hassle. Any workarounds?

alonzo
 
Hello,
add this to the @Page directive:

MaintainScrollPositionOnPostback="true"

Bruno
 
Back
Top