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

maximum datagrid row count?

hello everyone,

one of my developers is working with a DataGrid component, which uses a
DataTable as its DataSource.

the DataTable is populated by a method which calls a stored procedure
through an SqlCommand object, which accepts two input parameters which
affect the query range.

the problem she's experiencing is that with all input parameter values,
the DataTable is built correctly, and has data in it (this can be
verified through runtime debugging inspection - but also through
manually running the stored procedures with all the possible input
parameter values - they all return greater than zero rows). however,
when the input parameters are least restrictive (meaning the largest
range of rows returned) - even though the DataTable has information in
it, the DataBind operation seems to have no effect whatsoever. after
the DataBind, the DataGrid displays no data.

the only thing we can think of is if the DataGrid has a limitation of
the number of rows it can display? or perhaps just a raw amount of data
that can be bound to it? that seems unlikely though, since the number
of rows being returned by the least restrictive search is only 32,581.

thanks for any help,

jason

Nov 19 '05 #1
6 4582
I do not mean to sound overly critical, but, realistically, who looks at 32
thousand rows on a web page? I am not stating that you might not have the
application that is the exception, but apps that dump huge amounts of data
are generally worthless, unless you are talking about reporting (which is
killing a lot of trees to make reams of paper that never get read ;-> ).

I would try paging and see if the data shows with paging on. If so, then you
are dealing with a huge amount of data and that is your problem. Attempt two
would be to turn off ViewState for the DataGrid, as every row you write out
could be writing out many bytes of ViewState data.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"jason" wrote:
hello everyone,

one of my developers is working with a DataGrid component, which uses a
DataTable as its DataSource.

the DataTable is populated by a method which calls a stored procedure
through an SqlCommand object, which accepts two input parameters which
affect the query range.

the problem she's experiencing is that with all input parameter values,
the DataTable is built correctly, and has data in it (this can be
verified through runtime debugging inspection - but also through
manually running the stored procedures with all the possible input
parameter values - they all return greater than zero rows). however,
when the input parameters are least restrictive (meaning the largest
range of rows returned) - even though the DataTable has information in
it, the DataBind operation seems to have no effect whatsoever. after
the DataBind, the DataGrid displays no data.

the only thing we can think of is if the DataGrid has a limitation of
the number of rows it can display? or perhaps just a raw amount of data
that can be bound to it? that seems unlikely though, since the number
of rows being returned by the least restrictive search is only 32,581.

thanks for any help,

jason

Nov 19 '05 #2
32,581 rows will easily eat up all the memory available for the browser and
you will end up with an "out of memory exception" on client side. Make sure
you are not getting client-side errors.

Eliyahu

"jason" <ia****@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
hello everyone,

one of my developers is working with a DataGrid component, which uses a
DataTable as its DataSource.

the DataTable is populated by a method which calls a stored procedure
through an SqlCommand object, which accepts two input parameters which
affect the query range.

the problem she's experiencing is that with all input parameter values,
the DataTable is built correctly, and has data in it (this can be
verified through runtime debugging inspection - but also through
manually running the stored procedures with all the possible input
parameter values - they all return greater than zero rows). however,
when the input parameters are least restrictive (meaning the largest
range of rows returned) - even though the DataTable has information in
it, the DataBind operation seems to have no effect whatsoever. after
the DataBind, the DataGrid displays no data.

the only thing we can think of is if the DataGrid has a limitation of
the number of rows it can display? or perhaps just a raw amount of data
that can be bound to it? that seems unlikely though, since the number
of rows being returned by the least restrictive search is only 32,581.

thanks for any help,

jason

Nov 19 '05 #3
you're kidding me right? 32K text data rows is literally insignificant
for client side memory concerns, unless each row is an epic poem.
thanks though.

jason

Nov 19 '05 #4
paging did the trick. interesting that paging is required for a certain
volume of data. i'll tinker with the viewstate and see if that's what's
causing the threshold we're seeing.

and to your criticism, you are correct, it is reporting, but why would
you think we're killing trees? that's beauty of web-reporting, no paper
:)

Nov 19 '05 #5
Don't forget about DHTML DOM. Do you know how much memory every object
takes? I don't know, but 32K rows plus number_of_columns x 32K cells could
be too much. One of my applications used to choke up on just few thousand
rows until I limited the number of rows. It did produce an "out of memory"
exception on client.

Eliyahu

"jason" <ia****@yahoo.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
you're kidding me right? 32K text data rows is literally insignificant
for client side memory concerns, unless each row is an epic poem.
thanks though.

jason

Nov 19 '05 #6
Jason,

Things I'd try to check for scaling problems:

1) Try different browsers. Maybe you are hitting a browser limit. So try IE, Firefox,
Opera, etc.

2) Do an HTML GET via a non-browser method on the client and save the result to a
file. You can use Perl or other languages for sending the stuff. See if the text is
all coming back.

3) Try eliminating most of the columns in a trial build and see if you can get more
rows per page if you have less data per row.

I wonder if a large page load could cause a time-out on total transfer time. Don't
think so. But, again, using different browsers might help you control for that.

jason wrote:
hello everyone,

one of my developers is working with a DataGrid component, which uses a
DataTable as its DataSource.

the DataTable is populated by a method which calls a stored procedure
through an SqlCommand object, which accepts two input parameters which
affect the query range.

the problem she's experiencing is that with all input parameter values,
the DataTable is built correctly, and has data in it (this can be
verified through runtime debugging inspection - but also through
manually running the stored procedures with all the possible input
parameter values - they all return greater than zero rows). however,
when the input parameters are least restrictive (meaning the largest
range of rows returned) - even though the DataTable has information in
it, the DataBind operation seems to have no effect whatsoever. after
the DataBind, the DataGrid displays no data.

the only thing we can think of is if the DataGrid has a limitation of
the number of rows it can display? or perhaps just a raw amount of data
that can be bound to it? that seems unlikely though, since the number
of rows being returned by the least restrictive search is only 32,581.

thanks for any help,

jason

Nov 19 '05 #7

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

Similar topics

10
by: KemperR | last post by:
Dear All, may be some of you can help me with an XSLT example how to solve the following challange. For the XML below I want to find out the maximum hierarchy level for a specific element in my...
3
by: sam | last post by:
Hello Group, Havent had luck posting it to microsoft.public.dotnet.framework.aspnet.datagridcontrol group. Excuse me for the cross posting. I have a datagrid which needs to be split into multiple...
2
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
3
by: Bill C. | last post by:
Hello, I know this has been discussed a lot already because I've been searching around for information the last few weeks. I'm trying to implement a DataGridComboBoxColumn class. I've found...
2
by: pei_world | last post by:
I want to implement a key hit with enter to dropdown a combobox that is in the datagrid. in this case I need to override its original behaviours. I found some codes from the web. Does anyone know...
4
by: skOOb33 | last post by:
I successfully autosized the columns and rows on my Datagrid, and am now facing another issue. Having the sorting ability by clicking the column headers is key, but when I do that, it resizes all...
3
by: Madmartigan | last post by:
Hello I have the following task but am battling with the final output. How do I keep two different vectors in sync and how would I retrieve the index for the maximum value of one of the vectors??...
1
by: Brock | last post by:
Thanks in advance... (you can see a screenshot of what my form looks like currently at http://www.juggernautical.com/DataGrid.jpg - the Datalist is super-imposed in 'design view' but the DataGrid...
8
by: Brock | last post by:
I am trying to populate a Crystal Report from data in my DataGrid. The reason for this is that I want the user to be able to change values without updating the database, but still have their report...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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:
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.