Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataGridView RowCount setting very slow
Message
De
30/10/2008 08:55:58
 
 
À
29/10/2008 08:14:59
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01357256
Message ID:
01358321
Vues:
29
Viv,

>One way to lose the delay (but you also lose the functionality) SNIP:
>public VirtualModeForm()
>        {
>            Controls.Add(m_Grid);
>            m_Grid.CellValueNeeded += OnCellValueNeeded;
>            m_Grid.ColumnDividerDoubleClick += new DataGridViewColumnDividerDoubleClickEventHandler(m_Grid_ColumnDividerDoubleClick);
>            System.Diagnostics.Debugger.Break();
>            InitData();
>            InitGrid();
>        }
>
>        void m_Grid_ColumnDividerDoubleClick(object sender, DataGridViewColumnDividerDoubleClickEventArgs e)
>        {
>            e.Handled = true;
>        }
Thank you.
This is excellent solution, I haven't never thought about this.
Is it possible to change ColumnDividerDoubleClick method so that it preforms custom resize by using only visible rows in screen ?
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform