Object Reference > True DBGrid Properties > DataChanged Property |
DataChanged Property
Sets or returns modification status of the current row or cell.
object.DataChanged= boolean
Read/Write at run time (TDBGrid). Read-only at run time (Column). Not available at design time.
For a TDBGrid control, the DataChanged property indicates the modification status of the current row. If True, then one or more columns in the current row have been modified. If False, then no changes have been made.
When the DataChanged property of a TDBGrid control is True, you can use the DataChanged property of individual Column objects to determine the exact nature of the changes.
For a TDBGrid control, setting this property to True has no effect. Setting this property to False exits editing, discards all changes to the current row, and refreshes the current row from the data source. Setting this property within the BeforeColUpdate event is disallowed, however.
For a Column object, this property is read-only and cannot be set.
Note
The pencil in the RecordSelector column reflects the state of the grid's DataChanged property.