Object Reference > True DBGrid Events > ValueItemError Event |
ValueItemError Event
The ValueItemError event is triggered when the user attempts to enter invalid data into a column that is using value lists.
object_ValueItemError (ColIndex As Integer)
Arguments
ColIndex is an integer that identifies the column being edited.
This event is only triggered when the associated ValueItems collection has its Validate property set to True.
This event is useful even if the user is permitted to enter values not present in the ValueItems collection, as you may want to add the new value to the collection in this event. It also allows you to control how you want to respond to incorrect input.