ValidateSelChange

[property icon] ValidateSelChange

Causes a validate event when the user changes the selected item in the drop down portion of the control.

Enumerated type, possible values are:

Off Normal validate rules apply.
Legacy Compatibility setting. A Validate() event is produced when the selected item changes but not when changing the selection by typing in a value.
On A Validate() event is produced when the selected item changes.

Applies to: Grid , GridCell , KCMLEdit

Introduced in KCML version 6.00


>

ValidateSelChange

This boolean property can be used to tell an edit control that a Validate() event should be triggered when the user changes the selection in the dropdown list. This triggers only in this specific case and avoids having to use the more general, but strongly deprecated, SelChange() event on the listbox. Unlike the SelChange event, only user actions (such as typing in the editbox until the description appears, or selecting an item with the mouse/keyboard) will generate the event. Programmatic changes to the Text$ property will not force this event.

From KClient version 7.03.17229 this property can also be used with boolean edit controls, causing a validate event whenever the state is toggled

In KCML 6.20 this property only applies to edit controls and not to grid cells. From KCML 7.06 it can be used on grid cells as well.

        Form1.editControl1.ValidateSelChange = TRUE

See also

Grid methods, properties and events. GridCell methods, properties and events. KCMLEdit methods, properties and events.