DataGridView deletes new rowDataGridView deletes new row
Old forum URL: forums.lhotka.net/forums/t/422.aspx
Crestline posted on Tuesday, June 20, 2006
We have a EditiableRootList bound to a DataGridView. A new row is
added and when we hit TAB to go to the next new row, the one we just
entered disappears. If we enter an new row and then click on an
existing row above it (i.e. Don't hit tab to go to the new next row)
then it stays.
Any ideas?
Thanks,
BR
RockfordLhotka replied on Tuesday, June 27, 2006
Assuming you are using 2.0, it is possible that your GetIdValue() method isn't returning a unique value for each object as discussed here
http://www.lhotka.net/Articles.aspx?id=252e4f20-f202-4ba5-b6ff-4d629a2b7dcc
Another possibility is that your AddNewCore() override isn't properly adding the new child. Make sure your approach matches the one in the book from Chapter 7.
Crestline replied on Tuesday, June 27, 2006
Thanks, I'll take a look.
Copyright (c) Marimer LLC