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.