Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > how to improve performance ?

Reply
Thread Tools

how to improve performance ?

 
 
Joe Abou Jaoude
Guest
Posts: n/a
 
      04-06-2005
hi,

I m using a datagrid with AutoGenerateColumns="false",
and a template column composed by a checkbox and a label bound to the
database.
However in some cases, the query returns more than a thousand records
which make the display very very slow to dislay.
Of course one of the options is using pagination, although this decision
is not in my authority (i can only suggest)...
so I was thinking what could be some other options that can improve the
performance.

What i tought of, is using an htmlTable and adding the rows dynamically
by iterating through a datatable or a datareader (whatever is faster). I
thought this would be faster and also would make the web page size
smaller since the datagrid uses big names like
"MyDataGrid__ctl83_Label1"
Does anyone have an idea about if that would be a good solution or not?

my second question: the html page size is reaching 700-800 KB, which is
huge i guess. Is there a page size that it's not recommended to exceed
and what is it ?

Any information would be appreciated
regards



*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      04-06-2005
> What i tought of, is using an htmlTable and adding the rows
> dynamically
> by iterating through a datatable or a datareader (whatever is faster).


Nope -- this is essentially what the DataGrid' already doing for you. If
you (or your boss) wants to show thousands of rows on a page, then this is
the behavior you're going to see.

> my second question: the html page size is reaching 700-800 KB, which
> is huge i guess. Is there a page size that it's not recommended to
> exceed and what is it ?


It's too big when your users think that your page is slow to load (assuming
size of the page causes the slow load time).

-Brock
DevelopMentor
http://staff.develop.com/ballen



 
Reply With Quote
 
 
 
 
Elton Wang
Guest
Posts: n/a
 
      04-07-2005
To set the datagrid's EnableViewState to false can improve
its performance. But if you want its pagingation, it's
better to turn on its viewstate, unless you implement your
own paging logic.

HTH

Elton Wang
http://www.velocityreviews.com/forums/(E-Mail Removed)


>-----Original Message-----
>hi,
>
>I m using a datagrid with AutoGenerateColumns="false",
>and a template column composed by a checkbox and a label

bound to the
>database.
>However in some cases, the query returns more than a

thousand records
>which make the display very very slow to dislay.
>Of course one of the options is using pagination,

although this decision
>is not in my authority (i can only suggest)...
>so I was thinking what could be some other options that

can improve the
>performance.
>
>What i tought of, is using an htmlTable and adding the

rows dynamically
>by iterating through a datatable or a datareader

(whatever is faster). I
>thought this would be faster and also would make the web

page size
>smaller since the datagrid uses big names like
>"MyDataGrid__ctl83_Label1"
>Does anyone have an idea about if that would be a good

solution or not?
>
>my second question: the html page size is reaching 700-

800 KB, which is
>huge i guess. Is there a page size that it's not

recommended to exceed
>and what is it ?
>
>Any information would be appreciated
>regards
>
>
>
>*** Sent via Developersdex http://www.developersdex.com

***
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to quickly improve your computer's performance @ Bona... Silverstrand Front Page News 0 08-24-2005 01:26 PM
Improve performance while reading from a BufferedReader. Nishi Bhonsle Java 1 07-20-2004 02:00 PM
Why do BufferedInputStream improve performance? Marc Twain Java 5 01-15-2004 07:17 PM
How to improve the asp.net application's performance? hb ASP .Net 2 11-25-2003 10:35 PM



Advertisments