Object Reference > True DBGrid Properties > EditMaskUpdate Property |
EditMaskUpdate Property
Controls whether masked data is used for updates.
column.EditMaskUpdate = boolean
Read/Write at run time and design time.
Normally, after the user finishes editing a cell in a column which has its EditMask property set, True DBGrid caches the modified cell text, but any literal characters in the input mask template will be stripped from the modified cell text beforehand. However, you can override this behavior with the EditMaskUpdate property.
By default, the EditMaskUpdate property is False. This means that when the modified cell text is updated to the database, the grid sends the cached text (stripped of literals), not the formatted text displayed in the cell. You can override this default behavior by setting the EditMaskUpdate property to True, which causes the cached text to be formatted according to the EditMask property before being updated to the database.