HighTechTalks DotNet Forums  

GridView: max # of columns?

ASP.net Data Grid Control microsoft.public.dotnet.framework.aspnet.datagridcontrol


Discuss GridView: max # of columns? in the ASP.net Data Grid Control forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mark Peacock
 
Posts: n/a

Default GridView: max # of columns? - 06-02-2006 , 03:59 PM






Is there a recommended or enforced maximum # of columns in the 2.0 GridView?

I have a view with 32,000+ rows and 39 columns that I am displaying using
the GridView control. With paging enabled, the time it took to move between
pages was in the range of 2 to 5 minutes. The bottleneck was probably the
size of the DataSet used by the SqlDataSource control. I changed SELECT *
FROM VIEW_NAME to SELECT <just the list of 9 fields that I need to display>
FROM VIEW_NAME, which must have significantly reduced the size of the
DataSet. The time it took to traverse pages was reduced to just 2 to 3
seconds.
Thank you.

Reply With Quote
  #2  
Old   
Bruno Alexandre
 
Posts: n/a

Default Re: GridView: max # of columns? - 06-02-2006 , 07:43 PM






I have more and I get it quick...

I used the article under 4guysfromrolla...

your problem is that tyou are getting (very time you change the page) all
the 32000+ records!

check this link:

http://aspnet.4guysfromrolla.com/articles/031506-1.aspx

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)


"Mark Peacock" <MarkPeacock (AT) discussions (DOT) microsoft.com> escreveu na mensagem
news:05D21804-9B01-4F0A-9152-10DF8EFF4839 (AT) microsoft (DOT) com...
Quote:
Is there a recommended or enforced maximum # of columns in the 2.0
GridView?

I have a view with 32,000+ rows and 39 columns that I am displaying using
the GridView control. With paging enabled, the time it took to move
between
pages was in the range of 2 to 5 minutes. The bottleneck was probably the
size of the DataSet used by the SqlDataSource control. I changed SELECT *
FROM VIEW_NAME to SELECT <just the list of 9 fields that I need to
display
FROM VIEW_NAME, which must have significantly reduced the size of the
DataSet. The time it took to traverse pages was reduced to just 2 to 3
seconds.
Thank you.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.