Home - Forums-.NET - FlyGrid.Net (Windows Forms) - performance of new version grid

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

performance of new version grid
Link Posted: 15-Aug-2005 21:49
Hi
i got a big down in performance after replaced version of a grid.
From 2-sec 5000 rows - to 68 seconds!!!
Do u know the reason?
Link Posted: 16-Aug-2005 01:22
It is very strange, as the performance is increased (you can see the VirtualGrid sample - grid with 500 cols x 10 000 rows is created less then 1 second).
Please send us (develop @ 9rays.net) to check your code and give you recommendations to improve performance.
Link Posted: 16-Aug-2005 04:17
I saw your code,


ctlGrid.BeginInit();
AddColumn("юцфф щчщуф", "UNIT_ID",100, colUnitId);
//ctlGrid.EndInit();

If you use databinding you shouldn't use BeginInit/endInit or after each BeginInit call EndInit (in your example code - you've forget to uncomment endInit or forget to comment BeginInit).

ctlGrid.BeginInit();
AddColumn("юцфф щчщуф", "UNIT_ID",100, colUnitId);
ctlGrid.EndInit();

or

//ctlGrid.BeginInit();
AddColumn("юцфф щчщуф", "UNIT_ID",100, colUnitId);
//ctlGrid.EndInit();

You can download a sample - FlyGrid.Net Fast DataBinding
to see that more than 2k records loads less than 1 second.