Sign in Join
FPDoc Onlineexperiment

TComponentDataLink class

In unit DBGrids

Maintains an association between a component and a dataset.

Declaration

pascal
TComponentDataLink = class(TDatalink)

Inheritance

  1. TComponentDataLink
  2. TDatalink
  3. TPersistent
  4. TObject

Description

TComponentDataLink is a TDatalink descendant that maintains an association between a component and its linked dataset. TComponentDataLink coordinates the actions of the component and the dataset, and allows the component to respond to data events. TComponentDataLink defines event handlers which can be used to forward dataset events to the component implementation.

TComponentDataLink is the type used to implement the TCustomDBGrid.DataLink property.

See also

Properties

ModifiedprotectedIndicates if the component or the linked dataset has been changed.
DataSetNamepublicContains the name for the linked dataset.
FieldspublicProvides indexed access to fields in the linked dataset by their ordinal position.
VisualControlpublic

Methods

RecordChangedprotectedSignals the OnRecordChanged event handler when assigned.
DataSetChangedprotectedSignals the OnDatasetChanged event handler when assigned.
ActiveChangedprotectedSignals an event handler when the Active property is changed.
LayoutChangedprotectedSignals the OnLayoutChanged event handler when assigned.
DataSetScrolledprotectedSignals the OnDataSetScrolled event handler when assigned.
FocusControlprotectedSignals the OnFocusControl event handler when assigned.
CheckBrowseModeprotectedCalls the inherited method.
EditingChangedprotectedSignals the OnEditingChanged event handler when assigned.
UpdateDataprotectedSignals the OnUpdateData event handler when assigned.
MoveByprotectedMoves the position in the dataset by the specified number of rows.

Events

OnRecordChangedpublicOnRecordChanged - event handler for a change in the current record.
OnDataSetChangedpublicOnDataseChanged - event handler for a change in the attached dataset.
OnNewDataSetpublicOnNewdataset - event handler for formation of a link to a new dataset.
OnDataSetOpenpublicOnDataseOpen - event handler when the dataset is open.
OnInvalidDataSetpublicOnInvalidDataset - event handler when the dataset is invalid.
OnInvalidDataSourcepublicOnInvalidDataSource - event handler when the data source is invalid.
OnFocusControlpublicEvent handler signalled when the grid control receives focus.
OnLayoutChangedpublicOnLayoutChanged - event handler when the layout of the dataset has changed.
OnDataSetClosepublicOnDataseClose - event handler when the dataset is closed.
OnDataSetScrolledpublicOnDataseScrolled - event handler when the dataset is scrolled.
OnEditingChangedpublicEvent handler signalled when the value for the Editing property has been changed.
OnUpdateDatapublicEvent handler signalled to perform actions for pending changes to the linked dataset.

Inherited

From TDatalink (26)

Active ActiveRecord BOF BufferCount Create DataEvent DataSet DataSource DataSourceFixed Destroy Edit Editing Eof ExecuteAction FirstRecord GetActiveRecord GetBOF GetBufferCount GetEOF GetRecordCount ReadOnly RecordCount SetActiveRecord SetBufferCount UpdateAction UpdateRecord

From TPersistent (8)

Assign AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.