Object Reference > True DBGrid Properties > CurrentCellModified Property |
CurrentCellModified Property
Sets or returns modification status of the current cell.
TDBGrid.CurrentCellModified= boolean
Read/Write at run time. Not available at design time.
This property returns True if editing is in progress and the current cell (indicated by the Bookmark and Col properties) has been modified by the user. It returns False if the cell has not been modified or if editing is not in progress.
You can use this property to cancel any changes the user has made to the current text. For example, to program a function key to discard the user's changes (like the Esc key), trap the key code in the grid's KeyDown event and set CurrentCellModified to False. This will revert the current cell to its original contents.