Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGridView RowCount setting very slow
Message
From
28/10/2008 08:20:55
 
 
To
28/10/2008 06:15:17
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01357256
Message ID:
01357629
Views:
23
This message has been marked as the solution to the initial question of the thread.
Hi,

Setting the ColumnCount *after* the RowCount should help some......

>Thank you. Here is minimal testcase to reproduce the 8 sec delay:
>
>
using System;
>using System.Windows.Forms;
>
>class Test
>{
>    public static void Main()
>    {
>        Application.Run(new VirtualModeForm());
>    }
>}
>
>class VirtualModeForm : Form
>{
>    DataGridView grid = new DataGridView();
>    public VirtualModeForm()
>    {
>        Controls.Add(grid);
>        grid.VirtualMode = true;
>        grid.ColumnCount = 108;
>        // this line causes 8 seconds delay.
>        grid.RowCount = 1000000;
>    }
>}
>
>
>MSDN has DataGridView_Samples.zip which contains two VirtualMode grid samples and a doc file covering VirtualMode a bit.
>Part of samples from this file are also duplicated in MSDN doc code samples.
>MSDN forums contains also some few messages about VirtualMode.
>There is also a Chris Cells book.
>My code is based on this information.
>
>I have looked first 100 pages returned from google search.
>I havent found any other information about DataGridView VirtualMode.
>
>Any idea how to create fast editable virtual grid ?
>Maybe some other control can be used ?
>I looked to http://www.devage.com/ SourceGrid but last version was released a year ago so it seems not developed.
>
>Andrus.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform