Re: Speed up datagrid rendering

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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 -
>
>


.



Relevant Pages

  • Re: Datagrid & Page_Load
    ... it used to load the page. ... not used for postback unless it affects EVERY postback. ... When the page loads, it displays a list of the 26 letters of the> alphabet as hyperlinks which the users then click to return records> beginning with that letter, displayed in a DataGrid. ... The first column of> the DataGrid contains a LinkButton which, when clicked, calls the Delete> method of the DataGrid which deletes the record. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET data binding slow?
    ... The first view can be notoriously slow because ... >a DataGrid and one column in the DataGrid is a dropdown list which is the ... however the ColdFusion table loads quickly. ... >2) Is it normal in this situation for an ASP.NET page to load slowly? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: DropDownList Selection Menu
    ... Ok, so what you need to do, is set the DropDownList's AutoPostBack property ... SelectedIndexChanged event when the DataGrid has changed. ... >>> For some reason I can't get the data in the datagrid to load! ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problem about the multithreading
    ... Are you filling the datagrid through a call to Invoke? ... > load some data from the sqlce database then fill them into a datagrid. ... > private void LoadDataFromDB() ... > but after i use a new thread to perform the load data action. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: What program will load auctions to eBay at a specific time and date?
    ... > Thus controlling the start time without paying the eBay fee. ... > sit around and load them manually to get a good end time/date. ...
    (alt.marketing.online.ebay)