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

Paging in Gridview

107 100+
Hello buddies......

The title may sounds very easy but i want to have a discussion abt this?
In normal paging , we have to set allowpaging ="true" pagesize="10" for a gridview and in .vb page we have to do this:

Protected Sub GdTest_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GdTest.PageIndexChanging
Me.GdTest.PageIndex = e.NewPageIndex
fillgrid()
End Sub

I think this may effect the performance of the page by filling the grid during every page change.

Can we have any other options in which we dont have to fill the grid everytime?
Sep 17 '07 #1
5 1372
Hello buddies......

The title may sounds very easy but i want to have a discussion abt this?
In normal paging , we have to set allowpaging ="true" pagesize="10" for a gridview and in .vb page we have to do this:

Protected Sub GdTest_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GdTest.PageIndexChanging
Me.GdTest.PageIndex = e.NewPageIndex
fillgrid()
End Sub

I think this may effect the performance of the page by filling the grid during every page change.

Can we have any other options in which we dont have to fill the grid everytime?

hi
u must see this page
http://community.strongcoders.com/content/VBGridViewSortingPaging.aspx
http://forums.asp.net/t/956540.aspx?PageIndex=9
Sep 17 '07 #2
giveDsolution
107 100+
hi
u must see this page
http://community.strongcoders.com/content/VBGridViewSortingPaging.aspx
http://forums.asp.net/t/956540.aspx?PageIndex=9

Thnxs for reply.but i m not asking about sorting......i m asking that is there any way so that we dont have to bind the grid every time at pagechanging event.
First time we bind all the data .only indexing will be there for paging.
Sep 18 '07 #3
Shashi Sadasivan
1,435 Expert 1GB
Disable paging :)
Is that a problem ? or do you want to limit the size of your GridView?

Cheers
Sep 18 '07 #4
Hi,

There are no other options. you have to refresh the datagrid everytime the page is changing.
or you might consider creating a customized paging for your datagrid.

enjoy!

regards,
Ruel



Hello buddies......

The title may sounds very easy but i want to have a discussion abt this?
In normal paging , we have to set allowpaging ="true" pagesize="10" for a gridview and in .vb page we have to do this:

Protected Sub GdTest_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GdTest.PageIndexChanging
Me.GdTest.PageIndex = e.NewPageIndex
fillgrid()
End Sub

I think this may effect the performance of the page by filling the grid during every page change.

Can we have any other options in which we dont have to fill the grid everytime?
Sep 20 '07 #5
Shashi Sadasivan
1,435 Expert 1GB
Option 1
put your grid in an ajax update panel

Option 2
Put your grid in a div and enable hoizontal scrolling
This means no paging occours, and you load all the data at once!
Sep 20 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: ck388 | last post by:
For some reason when I enable the callback feature of the gridview I still get a page refresh, that is it seems like there is a postback that occurs, not a callback which is just supposed to update...
2
by: | last post by:
Hello, I have a GridView in my ASP.NET 2.0 application that performs the paging feature perfect when I have it bound to a data source. But now I have it bound to a dataset and the paging...
3
by: mazdotnet | last post by:
Hi everyone, I know when you enable paging in a datagrid the entire data is read but only the data that you want is displayed to the end user. Has this changed for Gridview? So if you have 10000...
1
by: davidjgonzalez | last post by:
I have a GridView that has paging enabled. Each item (as defined in an ItemTemplate) includes several controls which have operations i would like to Atlas-enable. Everything is working well except...
3
by: Marc Grutte | last post by:
Hi I am trying to bind a custom datasource to a gridview whilst paging is enabled. What is missing in this code to make the paging + binding work? thanks M <%@ Page Language="VB" %>
2
by: antonyliu2002 | last post by:
I've been googling for some time, and could not find the solution to this problem. I am testing the paging feature of gridview. I have a very simple web form on which the user can select a few...
0
by: Don Miller | last post by:
Here is an example of what I believe is a bug in ASP.NET 2.0 GridView paging without postbacks (or at least not documented how to fix it). Once the GridView is displayed, clicking on any of the...
3
by: Ronald S. Cook | last post by:
I was told that if calling lots of records from the database (let's say 100,000), that the GridView's paging feature would automatically "handle" everything. But the 100,000 records are still...
2
by: jaredciagar | last post by:
Hi Guys, Please Help ME.... I have a problem in displaying data in my gridview with paging, the data from the database is displaying to my gridview but I want to allow paging in my gridview.how can...
1
by: John A Grandy | last post by:
In regard to a GridView that must support searching, filtering, sorting, and paging ... There is a tradeoff in performing the sorting and paging in the database versus to creating a CLR sort...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.