Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Yet another bug

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

Yet another bug
Link Posted: 25-Nov-2006 04:53
It's really frustrating how every release introduces new bugs when others a fixed... with this release this code suddenly is broken:

                this.BeginInit();
                if (columnCache.ContainsKey(\"strike\"))
                {
                    if (column.FieldName.StartsWith(\"call\"))
                    {
                        this.Columns.Items.Insert(this.Columns.GetColumnIndexFromFieldName(\"strike\"), column);
                    }
                    else
                    {
                        this.Columns.Items.Insert(this.Columns.GetColumnIndexFromFieldName(\"strike\") + 1, column);
                    }
                }
                else
                {
                    this.Columns.Items.Add(column);
                }
                this.EndInit();


--> this.EndInit() occasionally throws a NullReferenceException
Link Posted: 26-Nov-2006 10:30
Please let me know - do you check on NULL column for insertion/addition?
Seems that addition cause this exception.
We've added to FlyGrid checking added/inserted object on null, this solution will available in the nearest FlyGrid.Net update.
Link Posted: 27-Nov-2006 00:05
The columns being inserted are never null
Link Posted: 27-Nov-2006 07:43
In this case please provide us with stack trace of this exception.