Skip to main content

TcxEditingControl.OnInitEditValue Event

Enables you to change the edit value for an invoked in-place cell editor.

Declaration

property OnInitEditValue: TcxecInitEditValueEvent read; write;

Remarks

This event occurs immediately after OnInitEdit. Handle the OnInitEditValue event to change the edit value in an activated in-place cell editor based on certain conditions.

The Sender parameter provides access to the container control that raised the OnInitEditValue event. Cast the Sender parameter value to the corresponding TcxEditingControl class descendant to access the control’s API members.

The AItem parameter provides access to the container control item whose cell is being edited.

The AEdit parameter provides access to the activated in-place cell editor. Cast the parameter value to the corresponding TcxCustomEdit class descendant to access the editor’s API members.

Assign an edit value to the AValue parameter to initialize the AEdit editor. The AValue parameter is initialized to the edited cell’s value when the OnInitEditValue event occurs.

See Also