Fast creation for huge DataGridView?
- From: "M R" <moshe.raab@xxxxxxxxxx>
- Date: Mon, 17 Sep 2007 19:18:47 +0200
I need to build and display a huge data grid (roughly 5000x5000). (I know it
is difficult to view, but i need to do it anyway)
the immediate problem i am facing is that it takes a VERY long time to add
5000 columns. i created an array of DataGridViewTextBoxColumn[] and called
DataGridView Columns.AddRange(array). This still takes a VERY long time. i
haven't even attempted to add the 5000 rows or calculate the values of each
cell (25M of them)
is there a trick that i am overlooking on how to manage this?
But there must be a better way. it makes more sense to display the headers
and rows and calculate the value of the cells as they become visible rather
doing the whole thing up front. is there a way to do this? or do i need to
use a third party product?
thanks
m
.
- Follow-Ups:
- Re: Fast creation for huge DataGridView?
- From: Larry Smith
- Re: Fast creation for huge DataGridView?
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Fast creation for huge DataGridView?
- From: Bob Powell [MVP]
- Re: Fast creation for huge DataGridView?
- Prev by Date: Re: Convert forms app to a service...
- Next by Date: Re: Problems Handling Errors Correctly
- Previous by thread: GridView problem with DetectImagePath in the c# call...
- Next by thread: Re: Fast creation for huge DataGridView?
- Index(es):
Relevant Pages
|