Home - Forums-.NET - FlyGrid.Net (Windows Forms) - bug in lookuplistcolumn ?

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

bug in lookuplistcolumn ?
Link Posted: 20-Sep-2005 04:28
Hi,
In my grid I have a lookuplistcolumn which datasource is updated on NodeSelectedChanging according to different parameters.

It works fine except in one case where I get the following exception:

Index was outside the bounds of the array.

The exception occurs in ninerays.flygrid.columns.dll
I've included the Callstack output below.

To raise the exception I've followed the following steps:
1. select the new row at the bottom of the grid.
2. fill in information
3. double click on the lookuplistcolumn node of the previous row (the one just above) without selecting the row before the double click


ninerays.flygrid.columns.dll!NineRays.Windows.Forms.Grids.LookupListColumn.IncrementValue(NineRays.Windows.Forms.Data.NodeBase node = {NineRays.Windows.Forms.Data.VirtualNode}, System.IServiceProvider provider = {NineRays.Windows.Forms.FlyGrid}) + 0x78 bytes  

ninerays.flygrid.dll!NineRays.Windows.Forms.FlyGrid.DoubleClickRow(int row = 5, bool toggleExpand = false, int col = 4) + 0x168 bytes  

ninerays.flygrid.dll!NineRays.Windows.Forms.FlyGrid.OnNodeDoubleClick(NineRays.Windows.Forms.Grids.FlyGridViewPort port = {NineRays.Windows.Forms.Grids.FlyGridViewPort}, NineRays.Windows.Forms.Data.NodeBase node = {NineRays.Windows.Forms.Data.VirtualNode}, int col = 4) + 0xb6 bytes  

ninerays.flygrid.dll!NineRays.Windows.Forms.FlyGrid.OnMouseClick(NineRays.Windows.Forms.Grids.FlyGridViewPort port = {NineRays.Windows.Forms.Grids.FlyGridViewPort}, NineRays.Windows.Forms.Data.NodeBase node = {NineRays.Windows.Forms.Data.VirtualNode}, int col = 4, int x = 322, int y = 123, int count = 2, System.Windows.Forms.MouseButtons button = Left) + 0x58 bytes  

ninerays.flygrid.dll!NineRays.Windows.Forms.FlyGrid.OnMouseUp(System.Windows.Forms.MouseEventArgs me = {X=323 Y=124 Button=Left}) + 0xcdb bytes  


Can you help?
Link Posted: 26-Sep-2005 04:53
Fixed, fixes will available in the new version, tomorrow.
Link Posted: 26-Sep-2005 21:53
I can reproduce the bug in another series of event:

1.select the new row.
2. fill in information
3. move to row above (in my application that saves the new row automatically and calls dataset.acceptchanges)
4. get back to the newly added row and double click on the lookuplist cell straight away.

If I don't use DropDownStyle = DropDownStyle.DropDownList it doesn't crash obviously as you can't double click.

Can you help further ?
Link Posted: 27-Sep-2005 06:11
Fixed.
Link Posted: 27-Sep-2005 20:58
No. even with the latest version I still get this bug.

Can you help?
Link Posted: 28-Sep-2005 00:20
Could you provide us with more info to solve this problem:
your steps screenshots or sample app?
Please send info to develop at 9rays.net.
Link Posted: 28-Sep-2005 00:31
Sorry. found the bug in my code. lookuplistcolumn was empty.

Fixed