Enabling Editing in Controls On User Entry
Go Up to Editing and Updating Data
A dataset must be in dsEdit state to permit editing to its data. If the AutoEdit property of the data source is True (the default), the data control handles the task of putting the dataset into dsEdit mode as soon as the user tries to edit its data.
If AutoEdit is False, you must provide an alternate mechanism for putting the dataset into edit mode. One such mechanism is to use a Vcl.DBCtrls.TDBNavigator control with an Edit button, which lets users explicitly put the dataset into edit mode. For more information about TDBNavigator, see Navigating and Manipulating Records. Alternately, you can write a code that calls the Edit method of the dataset when you want to put the dataset into edit mode.