DataGridView - Edited Cell does not Update when Reloading Data
Posted on 2008-11-01
I have an application that displays a DataGridView control. Above it is a toolbar that lets you iterate through items in another control which loads the related data into the grid.
If I edit a cell (eg: click a checkbox cell) and then click my toolbar button to load new data for the next item, the value that appears in the cell I was previously editing is the one cell that does not update. Although, if I click another cell after this problem occurs, the updated value *will* display.
This seems to be related to the cell being in edit mode and I am wondering if there is a way force the cell to stop editing. Has anyone else run into this problem, and if so how did you solve this?
I have tried DaataGridView.EndEdit, but this alone did not seem to help.