Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Designer Error w/Multiple Bands & NHibernate
posted

When trying to view columns for any band besides Invoice, I get the attached error.  We are using NHibernate for our business objects and the child bands (Detail, NonStockItems, DistributedApproval) are HasMany collections of the Invoice object.

 

Any thoughts?

 

Here's the text of the exception:

System.InvalidOperationException: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.

   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)

   at System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args)

   at Infragistics.Win.UltraWinGrid.Design.ColumnEditorPageControl.lvColumns_SelectedIndexChanged(Object sender, EventArgs e)

   at Infragistics.Win.UltraWinGrid.Design.ColumnEditorPageControl.LoadColumnsList(Int32 indexToSelect)

   at Infragistics.Win.UltraWinGrid.Design.ColumnEditorPageControl.Initialize(ColumnsCollection columns)

   at Infragistics.Win.UltraWinGrid.Design.ColumnEditorPageControl..ctor(ColumnsCollection columns)

   at Infragistics.Win.UltraWinGrid.Design.UltraGridDesignerDialog.SetTabPageFromTreeNode(UltraTreeNode node)

   at Infragistics.Win.UltraWinGrid.Design.UltraGridDesignerDialog.treeView1_AfterSelect(Object sender, SelectEventArgs e)

   at Infragistics.Win.UltraWinTree.UltraTree.OnAfterSelect(SelectEventArgs e)

   at Infragistics.Win.UltraWinTree.UltraTree.FireEvent(TreeEventIds id, EventArgs e)

   at Infragistics.Win.UltraWinTree.UltraTree.SelectNewSelection(SelectedNodesCollection selected, Boolean isRangeSelect, Boolean invalidate)

   at Infragistics.Win.UltraWinTree.UltraTree.Infragistics.Win.ISelectionManager.SelectItem(ISelectableItem item, Boolean clearExistingSelection)

   at Infragistics.Win.SelectionStrategySingle.OnMouseDown(ISelectableItem item, MouseMessageInfo& msginfo, Boolean forceDrag)

   at Infragistics.Win.SelectionStrategySingle.OnMouseDown(ISelectableItem item, MouseMessageInfo& msginfo)

   at Infragistics.Win.SelectionStrategySingle.OnMouseMessage(ISelectableItem item, MouseMessageInfo& msginfo)

   at Infragistics.Win.ControlUIElementBase.ProcessMouseDownHelper(Object sender, MouseEventArgs e)

   at Infragistics.Win.ControlUIElementBase.ProcessMouseDown(Object sender, MouseEventArgs e)

   at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)

   at Infragistics.Win.UltraWinTree.UltraTree.OnMouseDown(MouseEventArgs e)

   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

Parents Reply Children