473,391 Members | 1,427 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,391 software developers and data experts.

DataGrid Control: Paging Using URI Params?

Hi,

I'm using a DataGrid control to show a table's content with paging. For
navigation through the pages I'm using the DataGrid's intrinsic navigation
section.

My problem: The DataGrid navigation links use JavaScript to jump between
pages. I want them to use standard hyperlinks providing the page number in
some URL parameter so that I can copy the hyperlink elsewhere.

Can someone please enlighten me on if this is possible without writing my
own paging mechanism?

TIA,
Axel Dahmen
Nov 19 '05 #1
2 1832
Hi Axel,

I don’t think the thing is so simple. At least datagrid pagination is not so
called simply using JavaScript jump. It requires having pagechanged event and
event trigger to handle paging. It also needs code to implement paging. In
most case, it requires datagrid’s viewstate enabled, that means necessary
data need to post to server. Apparently in addition what I mentioned above
..NET also does many underneath works. So it’s impossible to perfor paging
simply using hyperlink with query string (GET method will lose all state of
client-side showed datagrid).

HTH

Elton Wang
el********@hotmail.com

"Axel Dahmen" wrote:
Hi,

I'm using a DataGrid control to show a table's content with paging. For
navigation through the pages I'm using the DataGrid's intrinsic navigation
section.

My problem: The DataGrid navigation links use JavaScript to jump between
pages. I want them to use standard hyperlinks providing the page number in
some URL parameter so that I can copy the hyperlink elsewhere.

Can someone please enlighten me on if this is possible without writing my
own paging mechanism?

TIA,
Axel Dahmen

Nov 19 '05 #2
Ah, I see, you're right... I forgot about ViewState... Thanks !
---------------
"Elton W" <El****@discussions.microsoft.com> schrieb im Newsbeitrag
news:28**********************************@microsof t.com...
Hi Axel,

I don't think the thing is so simple. At least datagrid pagination is not so called simply using JavaScript jump. It requires having pagechanged event and event trigger to handle paging. It also needs code to implement paging. In
most case, it requires datagrid's viewstate enabled, that means necessary
data need to post to server. Apparently in addition what I mentioned above
.NET also does many underneath works. So it's impossible to perfor paging
simply using hyperlink with query string (GET method will lose all state of client-side showed datagrid).

HTH

Elton Wang
el********@hotmail.com

"Axel Dahmen" wrote:
Hi,

I'm using a DataGrid control to show a table's content with paging. For
navigation through the pages I'm using the DataGrid's intrinsic navigation section.

My problem: The DataGrid navigation links use JavaScript to jump between
pages. I want them to use standard hyperlinks providing the page number in some URL parameter so that I can copy the hyperlink elsewhere.

Can someone please enlighten me on if this is possible without writing my own paging mechanism?

TIA,
Axel Dahmen

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: RelaxoRy | last post by:
sqlConnection1.Open(); myReader = sqlCommand1.ExecuteReader(); DataGrid1.DataSource = myReader; DataGrid1.DataBind(); myReader.Close(); sqlConnection1.Close(); The Datagrid populates fine. ...
3
by: Joseph D. DeJohn | last post by:
I am trying to get pagination working on a datagrid. Can anyone point me to a resource for help on this? I'm not sure if custom paging is the best option or not.
1
by: Jeremy | last post by:
I want my gird to sort only the items on the current page when I click on a column header. I wrote a little test app, but when I sort it pulls in items from other pages and places them on the current...
2
by: Josh | last post by:
Hi Guys, I have been stuck on this problem for several days now, i have a set of nested datagrids. Inside the second datagrid i have a dropdown list, a textbox and a label. I want the textbox...
2
by: Dave | last post by:
Hi, When binding a dataset to a DataGrid and paging 10 records at a time, is the entire dataset still encoded and sent to viewstate as well OR just the current page and what's visible to the...
2
by: Daniel Walzenbach | last post by:
Hi, I have a question regarding the DataGrid control. If paging is enabled the grid binds the data, sets the paging on the top/bottom (or however it is set up) and throws away unnecessary...
3
by: Fao, Sean | last post by:
I have a DataGrid that I'm adding CheckBox controls to at runtime (in the code behind) and I'm not sure if I'm doing it correctly. First of all, I noticed that the MyDataGrid.Columns.Add() method...
6
by: SatishPasala | last post by:
Hi I tried all the things I know am out of ideas now. Can you guys help me out with this? I have 4 grids on a page with I load on the Page_Load event. One of the grids has paging. When I move...
0
by: webaccess | last post by:
Hi Friends ..!! I want to use datagrid/dataview control to data in tablular format,also I want to add paging and format the data of table column. Problem is data is coming from API Dom in as...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.