DataGrid Scroll Position

M

Mark

I have a ASP .NET datagrid with a page height of about 6 rows. I need
it to be able to hold more then that so therefore it has to have
scrolling abilities. However the problem comes when the User tries to
"Edit" a value in the lower part of the DataGrid. The DataGrid loses
its scroll position on the postback forcing the User to rescroll. I
have Smart Navigation turned on, but that only seems to work when the
whole window(web page) is scrolling.

I've seen a few custom datagrids that solve this problem, but i can't
use those.

How can i make it so that the datagrid itself scrolls back to the
desired row, in this case, the one being edited.

Any help would be apreciated.

Web Browser is IE 5.5 or newer

Thanks
 
A

Ahmet Gunes

I have seen a code such as the one below once... Try it... It should work:

<div style="width:200px;height:200px;overflow:auto">
-- Your grid control here--
</div>
 
M

Mark

Yes, that code allows the dataGrid to scroll. But the Grid still loses
the scrolling position on postback, forcing the user to re-scroll.

Mark
 

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

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top