Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxSchedulerFieldAdapter Class

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

#Declaration

Delphi
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