| | |
Populating a grid
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2009
Posts: 7
Reputation:
Solved Threads: 0
I am populating a grid using Arraylist. First i get tha data from the database and populate the ArrayList. then i give this ArrayList, like datasource to the grid. For a little amount of data i think is ok. I think may be a problem with a big amount of data. So i am asking if there is any technique to get a big amount of data to the array list and then populate the grid, without having big delays. I know that the question is very general, but however, i will be greatfull for any answer. (the aplication is a web application)
In my experience, a large amount of data will slow down the grid regardless. Perhaps if you have that much data, you should page it so that only a fraction (one page) is loaded and visible at one time. Then you can divide the data into pages such that the grid is zippy all of the time.
I'm here to prove you wrong.
•
•
Join Date: Apr 2009
Posts: 7
Reputation:
Solved Threads: 0
i understand what you say, but however, at first i have to get all the data from the database or no?! In this manner the only thing that make it faster is not the communication with tha database but the displaying the data on the grid. You think, that takeing for example 5 000 records from the database will not make delays ?!!
>In this manner the only thing that make it faster is not the
>communication with tha database but the displaying the data on the grid.
Correct. Adding and displaying the data will likely be your bottleneck, unless the database design is so mucked up that selecting 5,000 records takes any noticeable amount of time. But in that case your problem has nothing to do with C#.
>communication with tha database but the displaying the data on the grid.
Correct. Adding and displaying the data will likely be your bottleneck, unless the database design is so mucked up that selecting 5,000 records takes any noticeable amount of time. But in that case your problem has nothing to do with C#.
I'm here to prove you wrong.
![]() |
Similar Threads
- Opening a new page and populating from a gridview control (ASP.NET)
- populating from datagrid to an array of structures (VB.NET)
- editable Gridviews (ASP.NET)
- How to refresh data or flex drid (Visual Basic 4 / 5 / 6)
- Custom Thread Module (PHP)
- Crystal Report 11 and Visual Basic 6.0 sql query.... (Visual Basic 4 / 5 / 6)
- MSHFlex Grid Control (Visual Basic 4 / 5 / 6)
- Reading and Displaying a comma delimited text file to a table. (ASP)
- another one...selecing rows in datagrid and sorting with column headers (VB.NET)
Other Threads in the C# Forum
- Previous Thread: Xml serializable problem
- Next Thread: panel changing colors
| Thread Tools | Search this Thread |
.net access algorithm array barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom cyclethruopenforms data database datagrid datagridview dataset date/time datetime degrees development draganddrop drawing encryption enum event excel file filename finalyearproject form format forms function gdi+ getoutlookcontactusinfcsvfile gis globalization gtk httpwebrequest image index input install installer java label list listbox mandelbrot math mono mouseclick mysql operator panel path photoshop picturebox pixelinversion post programming radians regex remoting richtextbox save server silverlight sleep socket sql sql-server statistics stream string table text textbox thread time timer timespan update usercontrol users validate validation visualstudio webbrowser windows winforms wpf xml






