I am using SQL Server 2000 (yes, still) and the field is of type 'image'. The control works absolutely beautifully in all other contexts, except this one. What do I make of the error? How do I solve it?
Btw, my custom field properties are set to: Return Alternate on Null; and, the Null Replacement Value is new byte[] {}.
Thanks,Bill
If you want to see how to properly set this up, download the StrataFlix sample as it shows you this exact scenario with either the MoviesBO or the PeopleBO as they both have images that bind to a PictureBox control.
I fixed the problem by adding, like you suggested, a check on the count of the BO. I introduced it into some code that I originally did not think would be called since the Undo was clicked; however, even after clicking the Undo, the editing state of the BO remains in 'Adding' until the bindings have all been taken care of. So, here is my simple fix:
Have a great day!!Bill