GridView EditButton: Automatically scroll down to row?

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
 
B

Bruno Piovan

Hello,
add this to the @Page directive:

MaintainScrollPositionOnPostback="true"

Bruno
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top