473,387 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 1720
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.