473,511 Members | 15,624 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Displaying a datagrid X rows at a time

Hi-
I have a datagrid that in some cases can be several thousand rows in
length. What I'd like it to do is have the data pushed to the browser
after every, say, 100 rows or so. Kind of a "response.flush" effect--
at a certain recurring point in the process, take what we've got and
send it to the browser. Is this possible?

Thanks.

Nov 19 '05 #1
5 1661
Hi,

that is called paging.

here are a few resources for yiou:

<qu****@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi-
I have a datagrid that in some cases can be several thousand rows in
length. What I'd like it to do is have the data pushed to the browser
after every, say, 100 rows or so. Kind of a "response.flush" effect--
at a certain recurring point in the process, take what we've got and
send it to the browser. Is this possible?

Thanks.

Nov 19 '05 #2
Sorry, typed too fast :-)

Resources:

ASP.NET DataGrid Paging
http://www.dotnetjunkies.com/Tutoria...6F8C883E6.dcik

ASP.NET DataGrid Paging Part 2 - Custom Paging
http://www.dotnetjunkies.com/Tutoria...B871F967F.dcik

ASP.NET DataGrid Paging - Custom Paging w/ Caching & Numeric Links
http://www.dotnetjunkies.com/Tutoria...1BA3A12DD.dcik

Easy DataGrid Paging with the DataGridPager
http://aspalliance.com/628

--
Teemu Keiski
ASP.NET MVP, Finland
<qu****@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi-
I have a datagrid that in some cases can be several thousand rows in
length. What I'd like it to do is have the data pushed to the browser
after every, say, 100 rows or so. Kind of a "response.flush" effect--
at a certain recurring point in the process, take what we've got and
send it to the browser. Is this possible?

Thanks.

Nov 19 '05 #3
Not without using paging as Teemu recommended. It seems as though you still
want to show the 1000+ rows at a time. The DataGrid is rendered as an html
table. Internet Explorer renders table in one pass. IOW, the table (grid)
will not be show to the user on their machine until the whole table has been
received and parsed by the browser.

bill

<qu****@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi-
I have a datagrid that in some cases can be several thousand rows in
length. What I'd like it to do is have the data pushed to the browser
after every, say, 100 rows or so. Kind of a "response.flush" effect--
at a certain recurring point in the process, take what we've got and
send it to the browser. Is this possible?

Thanks.

Nov 19 '05 #4
Yeah Bill, that's more of what I had in mind; we want to show the whole
list and avoid paging if we can. Sounds like we might have to split up
the data into separate datagrids somehow. Thanks to you and Teemu for
your help.

Nov 19 '05 #5
qua...@gmail.com wrote:
Yeah Bill, that's more of what I had in mind; we want to show the whole list and avoid paging if we can. Sounds like we might have to split up the data into separate datagrids somehow.


You could do Response.Flush() if you didn't use bound controls like the
DataGrid or Repeater. Render the page like it was classic ASP. Render
the tableHeader, flush, then do a foreach on your rows, rendering HTML
rows and flushing periodically.

It's easy enough to do. In fact, it's exactly how you did it 3 years
ago.
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #6

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

Similar topics

7
3492
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
3
2530
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called...
5
12209
by: John Richardson | last post by:
I've been bothered for some time about my DataGrid not populating my rows very quickly. I have about 10K rows loading into the grid. I create a datatable dt with 2 columns, an ID and a display. ...
3
4891
by: vinayak | last post by:
Hi I am displaying data in Datagrid in ASP.NET with Edit/Update functionality for each row. On the same page I have 2 Button controls which submits the request to server. These button controls...
3
4858
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
4
2195
by: Tim T | last post by:
Hi, I have a stored procedure executing a search and an asp.net page displaying the results in a datagrid. The datagrid has paging on it, I am using Visual Studio.NET and can't see any option...
2
2385
by: Eric Dan | last post by:
Hi, Even tough I was able to implement what I want in a weird and non efficient way, I would like to get an opinion what is the right way to achieve my task: Scenario: • Display a DataGrid...
3
2127
by: Gerhard | last post by:
I would like a DataGrid I am using to show a default number of rows (10) with the heading, even if the dataset it is bound to returns less than that number of rows (0-9). It is a databound grid...
0
1502
by: latin & geek via DotNetMonster.com | last post by:
hi! ok, im working on a database application. ive successfully managed to establish a relationship between two tables and display them on a datagrid, edit and add new records to them. now i...
0
7432
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...
1
7093
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...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.