TComponentDataLink class
Maintains an association between a component and a dataset.
Declaration
TComponentDataLink = class(TDatalink)Inheritance
- TComponentDataLink
- TDatalink
- TPersistent
- 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
Modified | protected | Indicates if the component or the linked dataset has been changed. |
DataSetName | public | Contains the name for the linked dataset. |
Fields | public | Provides indexed access to fields in the linked dataset by their ordinal position. |
VisualControl | public |
Methods
RecordChanged | protected | Signals the OnRecordChanged event handler when assigned. |
DataSetChanged | protected | Signals the OnDatasetChanged event handler when assigned. |
ActiveChanged | protected | Signals an event handler when the Active property is changed. |
LayoutChanged | protected | Signals the OnLayoutChanged event handler when assigned. |
DataSetScrolled | protected | Signals the OnDataSetScrolled event handler when assigned. |
FocusControl | protected | Signals the OnFocusControl event handler when assigned. |
CheckBrowseMode | protected | Calls the inherited method. |
EditingChanged | protected | Signals the OnEditingChanged event handler when assigned. |
UpdateData | protected | Signals the OnUpdateData event handler when assigned. |
MoveBy | protected | Moves the position in the dataset by the specified number of rows. |
Events
OnRecordChanged | public | OnRecordChanged - event handler for a change in the current record. |
OnDataSetChanged | public | OnDataseChanged - event handler for a change in the attached dataset. |
OnNewDataSet | public | OnNewdataset - event handler for formation of a link to a new dataset. |
OnDataSetOpen | public | OnDataseOpen - event handler when the dataset is open. |
OnInvalidDataSet | public | OnInvalidDataset - event handler when the dataset is invalid. |
OnInvalidDataSource | public | OnInvalidDataSource - event handler when the data source is invalid. |
OnFocusControl | public | Event handler signalled when the grid control receives focus. |
OnLayoutChanged | public | OnLayoutChanged - event handler when the layout of the dataset has changed. |
OnDataSetClose | public | OnDataseClose - event handler when the dataset is closed. |
OnDataSetScrolled | public | OnDataseScrolled - event handler when the dataset is scrolled. |
OnEditingChanged | public | Event handler signalled when the value for the Editing property has been changed. |
OnUpdateData | public | Event 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.
