User (Old forums)MemberApril 23, 2008 at 5:48 amPost count: 23064
I am trying to add some additional functionality to the DataRow.EndEdit() event. Using an example from the forums I have derived from DataGridControl, and DataRow to achieve this. While this works OK when I edit a row in the grid, I now have problems with adding data using the InsertionRow. When I leave the InsertionRow, I get a FatalExecutionEngineError. I have tried deriving from InsertionRow as well, but I now get this same error occurring on the MyBase.EndEdit() line within my derived Insertion Row:
FatalExecutionEngineError was detected
Message: The runtime has encountered a fatal error. The address of the error was at 0x56d7b7a7, on thread 0xe40. The error code is 0x80131623. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.
Imported from legacy forums. Posted by Jeremy (had 859 views)Xceed SupportMemberApril 23, 2008 at 8:16 amPost count: 5658
Can you provide additional details? What are the modifications you brought to the InsertionRow?
Is there any additional information with the error? ( stack trace )
Imported from legacy forums. Posted by Marcus [Xceed] (had 408 views)User (Old forums)MemberApril 23, 2008 at 9:25 amPost count: 23064
I don’t see anything in the call stack, just [External Code], I was getting the error before I derived from InsertionRow, and didn’t add anything other than a MsgBox call after the MyBase.EndEdit to prove it was working. This is the code for the derived classes:
Public Class MyDataGridControl
Protected Overrides Function GetContainerForItemOverride() As System.Windows.DependencyObject
Return New SuperGridRow
Protected Overrides Function IsItemItsOwnContainerOverride(ByVal item As Object) As Boolean
Return (TypeOf item Is SuperGridRow)
Public Class SuperGridRow
Public Overrides Sub EndEdit()
Let me know if I can provide any other details. This code is contained in a separate assembly as VS2008 is having problems recognising my XAML reference to the local project.
Imported from legacy forums. Posted by Jeremy (had 1289 views)User (Old forums)MemberApril 24, 2008 at 11:44 amPost count: 23064
Reverted back to vanilla version of the grid, and still got the same error, so started from scratch again, and now all is OK, just think VS2008 was having a bit of a fit…
Imported from legacy forums. Posted by Jeremy (had 871 views)
- You must be logged in to reply to this topic.