I have employees collections derived from EditableRootListBase setting up to do on demand editing with datagridview control using sample template from the follow post
http://forums.lhotka.net/forums/post/8887.aspx
.
The 'isDirty' flag only set to true for the very first row of the datagridview when doing editing. As a result, the rest of the rows never get updated. Not quite sure what the problem is. Any suggestion?
Andy
So when you edit, say, line 3 and change the values in that object somehow IsDirty is set on the first object in the list? Since each object in the list tracks its own state, including IsDirty, it should not be possible for an edit of one object to change the state of another object. Can you elaborate further on what you are doing?
Rocky,
I am only able to edit the very first row. The rest of the rows in the datagridview can not be updated because 'isDirty' flag is not being set. I found out through tracing the executing process in debug mode in Visual studio.
Andy
I am able to edit the rows just fine. It just those rows never get persisted in the database because the DataPortal_Update method in my biz object never get called since the 'isDirty' is not being set properly for the base class to do so.
Andy
It's very strange that it's only working for the very first row of the grid.
Anyway, I'll poke around to see I can pin point the problem.
Andy
Just to follow up with the issue.
I got a System.StackOverflowException when try to force the update via base.Save(true) in my biz object SAVE's method. Not sure it can trigger an infinite loop or recursion by doing just that.
Andy
Copyright (c) Marimer LLC