Skip to main content

TcxSchedulerFieldAdapter Class

The TcxSchedulerFieldAdapter implements a link between the ExpressQuantumGrid‘s column and an associated scheduler storage’s field.

Declaration

TcxSchedulerFieldAdapter = class(
    TPersistent
)

Remarks

The TcxSchedulerGridConnection component is used to connect the ExpressQuantumGrid to the scheduler storage. This way, the grid can be used as the Tasks pane in a scheduling application.

The TcxSchedulerFieldAdapter is used to map grid columns and scheduler storage’s fields. This mapping is performed automatically when the connection between the grid and the scheduler is established (see the TcxSchedulerGridConnection.Active property).

However, if you need to make some modifications to grid columns or storage fields, use the TcxSchedulerGridConnection.OnInitializeItem event for this purpose. In this event, a reference to the TcxSchedulerFieldAdapter instance is passed to the Adapter parameter.

The TcxSchedulerFieldAdapter allows you to:

  • Obtain a reference to the linked grid column and storage field.

  • Specify the grid column’s visibility.

  • Change the column’s caption.

  • Change values in the storage field.

  • Change settings of in-place editors used for editing and display purposes.

  • Specify the read-only status of the grid column.

Inheritance

TObject
TPersistent
TcxSchedulerFieldAdapter
See Also