Re: Speed up datagrid rendering
- From: "Alex Passos" <bz@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 7 Apr 2005 09:38:40 -0500
Have you tried to do the processing on a separate thread so that your main
UI thread won't lock up. I did this on a project and its not something that
is trivial because DataGrid is not a thread safe component so great care
goes into controlling the concurrency. In my project it loaded thousands
upon thousands of rows so I controlled it using the viewable area and fetch
the database rows necessary when needed also allowing for a small foot print
of the recordset.
Also for a small amount of rows like that you might want to look into
DataGrid.SuspendLayout and DataGrid.ResumeLayout so you can suspend it, load
the data, then resume that might help you some.
Alex
"Peder Y" <pedery@xxxxxxxxxxx> wrote in message
news:eZ1j%23o3OFHA.3076@xxxxxxxxxxxxxxxxxxxxxxx
> Nope, I just have a few rows of data. Time will show if an approach like
> the one you describe will be necessary, but for the time being I'm merely
> interested in a faster way to load a datagrid. Maybe it's because I use a
> lot of ColumnStyles (around 15 in each grid)?
>
> - P -
>
>
.
- Follow-Ups:
- Re: Speed up datagrid rendering
- From: Peder Y
- Re: Speed up datagrid rendering
- References:
- Speed up datagrid rendering
- From: Peder Y
- Re: Speed up datagrid rendering
- From: Alex Passos
- Re: Speed up datagrid rendering
- From: Peder Y
- Speed up datagrid rendering
- Prev by Date: Custom Designer Issue with custom Control
- Next by Date: Re: Speed up datagrid rendering
- Previous by thread: Re: Speed up datagrid rendering
- Next by thread: Re: Speed up datagrid rendering
- Index(es):
Relevant Pages
|