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