AlwaysValidate

[property icon] AlwaysValidate

Allows edits to be always validated

Enumerated type, possible values are:

Default Grid default rules
Edit Editing is enabled for the cell but the EditValidate() routine will not be called when the user leaves the cell
EditWithValidate If the user moves out of the cell, and the cells contents were modified, then call the EditValidate() event handler, if it exists
NoEdit Used to skip to the Next or Previous cell when the user attempts to Tab or Shift Tab into the cell. Only relevant when the EditRow() or EditGrid() methods are being used. Note that this property does not prevent the user from clicking on the cell directly. To completely disable a cell you should set the LeftAction or RightAction property to Ignore so as to disable the click event handler
EditAlwaysValidate The EditValidate() event is always called when the user moves between cells, regardless of any changes made to the cells contents

Applies to: KCMLEdit

Introduced in KCML version 6.00


>AlwaysValidate

AlwaysValidate

This property is used to determine if the Validate() event handler is to be called when the user moves focus out of the edit control. The following is a list of available settings for this property. Note that these values are taken from the same enumeration used for the Validate property of grid cells and that some of the values do not apply to simple edit controls.

Setting the property to EditAlwaysValidate will mimic the action of the deprecated LoseFocus() event but will correctly handle ellipsis and dropdown focus changes.

Default Uses the current underlying setting for the grid. If this is set to default then the EditWithValidate setting is assumed.
EditWithValidate If the user moves focus out of the control and the cells contents were modified then call the Validate() event handler, if it exists.
EditAlwaysValidate The Validate() event is always called when the user moves focus out of the control, regardless of any changes made to the cell contents.
Edit Reserved
NoEdit Reserved

See also

KCMLEdit methods, properties and events.