472,789 Members | 1,451 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,789 software developers and data experts.

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 1693
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Faith | last post by:
I found code on www.codeproject.com. Here is a sample it is called DataGridColumnDropDown. I modified it to use the text box when I wanted it to depended on a certain search criteria. Public...
0
by: Andla Rand | last post by:
Hi, Could you help me to understand how datagrid works. I'm trying to make a datagrid editable. Now most of the tutorials I read says that i should turn the Enable ViewState off. Why is that? ...
4
by: Stephan Bour | last post by:
Hi, I have a datagrid databound to a SQL query. I'd like to allow editing of some columns but not all. Is there a way to turn off the conversion of the datagrid cells to textboxes for some columns...
2
by: Jesper Stocholm | last post by:
I have a challenge, that I do not seem to be able to solve. I have an "overview"-page that presently displays data from 2 columns in a database table. The users should be allowed to edit data in...
0
by: DaveR | last post by:
I have a webform with a two-column datagrid based on an Arraylist. The Arraylist draws the data for the two columns from two different tables in an SQL database. The data is displayed in datagrid...
8
by: pmud | last post by:
Hi, I have 2 questions: 1. I have an editable data grid with 21 columns. I need to edit only 2 cloumns in this data grid. But when the grid is displayed in Edit mode, all the columns show long...
2
by: zambizzi | last post by:
....I can't seem to get my hands on a control I'm loading in an editable datagrid. Here's my datagrid control: <asp:datagrid id="GLRulesGrid" runat="server" autogeneratecolumns="False"...
6
by: Richard L Rosenheim | last post by:
I'm sure it can be done, I haven't been able to find the right article yet. I want to be able to filter the records that the datagrid displays, but still have an editable datagrid. That is, I...
9
by: John Hernry | last post by:
I have been watching the dotnet newsgroups for a couple of weeks now and scouring the net looking for a solution to my datagrid find functionality. With no luck. I am hoping that you can help me....
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.