By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,888 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,888 IT Pros & Developers. It's quick & easy.

Editable Datagrid - keep Row position

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.