Home - Forums-.NET - FlyGrid.Net (Windows Forms) - FlyGrid performance when selecting many nodes.

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

FlyGrid performance when selecting many nodes.
Link Posted: 16-Feb-2006 09:31
Hello,

I have a custom control that wraps FlyGrid.  I use this to display table data.

If I hold shift and then page down to start selecting all of the rows, my cpu usage will hit 100% and the screen will stop updating.  If I release all the keys, the grid will scroll to the some row down the list.  The selection is being made it is just not updating the screen.

If I scroll through the list using the arrow keys/page up and down while not selecting the rows, FlyGrid is very fast.

I'm not sure what is going on.  I've searched the forums and seen comments about nulls in the cells, but this is not the case for me, as every cell is populated with some data.

Thoughts?  Thanks.
Link Posted: 16-Feb-2006 09:57
Using at the "Best Performance" example that comes with FlyGrid, you can reproduce my issue.

If you fill the Grid with 10000 rows, switch ReadOnly = true, RowSelect = true, and MultiSelect = true and then highlight the first row, hold shift and then press and hold pagedown, you'll lock up the UI and peg the CPU at 100% usage.

As soon as you let go, it will flip the some row down the grid.

Thanks.
Link Posted: 16-Feb-2006 11:34
This problem is already solved, please visit us tomorrow to download nearest FlyGrid.Net update.
Link Posted: 16-Feb-2006 14:36
Great, thanks.

I'll grab the latest tomorrow.
Link Posted: 16-Feb-2006 17:14
Already available, see the announcement.
Link Posted: 17-Feb-2006 09:08
I do not believe this is fixed.

Additionally, another problem exists.

Using "Best Performance" again, fill the grid with 10000 rows.  Set MultiSelect  = true, ReadOnly = true, and RowSelect = true.

Highlight one row, and then select all using Control-A.  Then press the up or down arrow.  The cpu will hit 100% usage again.
Link Posted: 17-Feb-2006 09:31
It seems for me that ~2500 is the upper limit of what is acceptable.

Anything more than that and it appears that the app locks up.

( incidentally, I use a 1.7Ghz Pentium M with 1.5Gigs of Ram, just FYI )
Link Posted: 17-Feb-2006 10:01
Please describe way of selection, if you doing it in your code, please embrace your selection code into FlyGrid.BeginInit()/EndInit() statements - this significantly increases performance:

flyGrid.BeginInit();
try
{
  //your selection code
}
finally
{
  flyGrid.EndInit();
}
Link Posted: 17-Feb-2006 11:06
I'm not writing any code that does the selection.

As I mentioned, the same symptoms exist in the FlyGridDemo.exe in the Best Performance example.
Link Posted: 19-Feb-2006 11:11
Try the latest FlyGrid.Net update, this problem is solved.