Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGridView RowCount setting very slow
Message
From
30/10/2008 08:55:58
 
 
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:
01358321
Views:
30
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform