470,590 Members | 2,456 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,590 developers. It's quick & easy.

Editable Datagrid - keep Row position

I have an editable Datagrid and memorize its datasource with a Session
variable. On each Page_Load I simply Bind the Datagrid. Everything works
fine.
The problem comes, when I have a lot of entries, I mean, more than fits on
one page. The user will then scroll down and click on 'edit'. After the
roundtrip he has to scroll down again in order to see the row in the editable
state.
Is there a way to keep the row's position and scroll automatically to it ?
Nov 19 '05 #1
2 1620
This article shows how to keep the row position in a datagrid after postback
by using an anchor tag.
http://www.dotnetjunkies.com/Tutoria...E6AF9052D.dcik

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Carlo Marchesoni" <Ca*************@discussions.microsoft.com> wrote in
message news:2E**********************************@microsof t.com...
I have an editable Datagrid and memorize its datasource with a Session
variable. On each Page_Load I simply Bind the Datagrid. Everything works
fine.
The problem comes, when I have a lot of entries, I mean, more than fits on
one page. The user will then scroll down and click on 'edit'. After the
roundtrip he has to scroll down again in order to see the row in the
editable
state.
Is there a way to keep the row's position and scroll automatically to it ?

Nov 19 '05 #2
At the top of your HTML code, use the statement SmartNavigation="True"

For example -
<%@ Page Language="vb" SmartNavigation="True"%>

"Carlo Marchesoni" wrote:
I have an editable Datagrid and memorize its datasource with a Session
variable. On each Page_Load I simply Bind the Datagrid. Everything works
fine.
The problem comes, when I have a lot of entries, I mean, more than fits on
one page. The user will then scroll down and click on 'edit'. After the
roundtrip he has to scroll down again in order to see the row in the editable
state.
Is there a way to keep the row's position and scroll automatically to it ?

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Faith | last post: by
reply views Thread by Andla Rand | last post: by
4 posts views Thread by Stephan Bour | last post: by
2 posts views Thread by Jesper Stocholm | last post: by
reply views Thread by DaveR | last post: by
2 posts views Thread by zambizzi | last post: by
6 posts views Thread by Richard L Rosenheim | last post: by
9 posts views Thread by John Hernry | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.