I may be reading this wrong, but this sounds like an order-of-operations issue. I don't see the code where you add the item to the list so I'm not 100% sure on his, but I would guess that you're adding the new object to the list and then modifying the values.
I may be reading this wrong, but this sounds like an order-of-operations issue. I don't see the code where you add the item to the list so I'm not 100% sure on his, but I would guess that you're adding the new object to the list and then modifying the values You need to ensure that the boolean value is not null. If you're adding a new item,.
You will need to populate the value of the object being added before you add it to he list. One possible way to ensure this is to set a default value of either false or true, or set this in the constructor. Edit - Added I didn't test this myself, but I'm hoping it will work for you.
Can you hook into the DefaultValuesNeeded event of the DataGridView? That event should fire before the exception is thrown, which should resolve the issue...
This is a good point. I should have addressed that, my bind statement occurs on form load. Further, my constructor does actually set a default value for the boolean member.
WHen I click on the "new entry" line, the defaults are pulled in (i also set default dates). The problem occurs on when the "new entry" line is painted to the screen. – Allen Oct 6 '09 at 21:08 I tried that event, and set a value... and it does populate, but not until I click on the new entry...the exception fires when the new entry line paints.
THe draw literally pauses on that cell. – Allen Oct 6 '09 at 21:46.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.