Exception happen in following call gridGroupingControl.TableDescriptor.Columns.Count;
for(int index = 0; index < gridGroupingControl.TableDescriptor.Columns.Count; index++)
{
...
}
Exception content:
"Object reference not set to an instance of an object."
"Syncfusion.Grid.Grouping.Windows"
at Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl.engine_SourceListChanged(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at Syncfusion.Grouping.Engine.OnSourceListChanged(EventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridEngineBase.OnSourceListChanged(EventArgs e)
at Syncfusion.Grouping.Engine.SetSourceList(IEnumerable value)
at Syncfusion.Windows.Forms.Grid.Grouping.GridEngineBase.SetCurrencyManager(CurrencyManager value)
at Syncfusion.Windows.Forms.Grid.Grouping.GridEngineBase.get_CurrencyManager()
at Syncfusion.Windows.Forms.Grid.Grouping.GridEngineBase.GetSourceListBase()
at Syncfusion.Grouping.Engine.GetSourceList()
at Syncfusion.Grouping.FieldDescriptorCollection.EnsureInitialized(Boolean populate)
at Syncfusion.Grouping.FieldDescriptorCollection.get_Count()
at Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptorCollection.EnsureInitialized(Boolean populate)
at Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptorCollection.get_Count()
at OpsCenter.UI.Editor.Grid.AsbtractGridController`1.Render(Object dataSource, ICollection`1 dataProperties) in C:\Projects\Petris\Chinook\OpsCenter\v5\Trunk\OpsCenter.UI\Editor\Grid\AsbtractGridController.cs:line 714
Untitled_17f9d887.png