[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBGrids' (#lcl)

TCustomDBGrid.EditingColumn

EditingColumn sets or resets the column being edited in the control.

Declaration

Source position: dbgrids.pas line 454

protected procedure TCustomDBGrid.EditingColumn(

  aCol: Integer;

  Ok: Boolean

);

Arguments

aCol

  

Ordinal column number for the column with the active editor control.

Ok

  

True if the column number is invalid and should be reset to the uninitialized value (-1).

Description

EditingColumn is a procedure used to set or reset the column being edited in the control .

aCol indicates the ordinal column number and is stored internally for use in other methods of the control. Ok indicates that editing is active when set and causes the DataLink to set its Modified flag to True. When Ok contains False the internal column number is reset to its default value indicating that no column is currently being edited.

EditingColumn is used in the implementation of other methods in the grid control such as UpdateData, EditorCancelEditing, EditorIsReadOnly, and DoExit.

See also

TCustomDBGrid.UpdateData

  

UpdateData is used to perform pending updates for the selected cell.

TCustomDBGrid.EditorCancelEditing

  

EditorCancelEditing cancels pending changes and disables the editor.

TCustomDBGrid.EditorIsReadOnly

  

EditorIsReadOnly determines if the editor can be enabled for the selected cell in the control.

TCustomDBGrid.DoExit

  

DoExit closes the editor and the datalink for the control.


Version 3.2 Generated 2024-02-25 Home