Replies: 6 comments 3 replies
-
What is the code that calls |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
In this example, the error is the same. The reason seems to be that the "ApplicationContext" of the current object has not been assigned after the object is created. In this example, move the mouse over the grid addition row, and an error occurs. |
Beta Was this translation helpful? Give feedback.
-
Is it possible that the business object instance was created using the In CSLA 6 you can't use the |
Beta Was this translation helpful? Give feedback.
-
A collection of grid bound data objects. When adding rows to the grid, sub objects are automatically created by the grid. The grid was not created by calling "data portal". The code in the "red box" is added to correct this error. Is this appropriate? |
Beta Was this translation helpful? Give feedback.
-
That seems reasonable. I well-behaved data grid control will use the collection's data binding interface to request adding a new item, and that allows you to (in your collection class) override the add new child method so you can create the new child properly. Some controls don't do that correctly (shame on them!), so your workaround seems reasonable. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Main object "order", "order" sub object "OrderItems". Binding "OrderItems" to "grid control", there was an error in automatically adding rows using the grid.
Version and Platform
CSLA version: 6.0
OS: Windows
Platform: WinForms
Beta Was this translation helpful? Give feedback.
All reactions