DarkConsultant
Programmer
Hi All,
I am trying to use a DataGridView which is bound to a list of DataObjects. The only problem I am having is that if I edit a cell to nothing (remove the cell contents) then on cell leave I get an uncatchable error. The error message is 'Object reference not set to an instance of an object' I am guessing that this refers to the cell but can get no further. I do not seem to be able to catch this error anywhere.
And yes I am leaving a space in each cell to get past the error but this is causing me problems further down the line.
Any ideas anyone.
Regards
DarkConsultant
Live long and prosper \\//
I am trying to use a DataGridView which is bound to a list of DataObjects. The only problem I am having is that if I edit a cell to nothing (remove the cell contents) then on cell leave I get an uncatchable error. The error message is 'Object reference not set to an instance of an object' I am guessing that this refers to the cell but can get no further. I do not seem to be able to catch this error anywhere.
And yes I am leaving a space in each cell to get past the error but this is causing me problems further down the line.
Any ideas anyone.
Regards
DarkConsultant
Live long and prosper \\//