Object Reference > True DBGrid Events > ComboSelect Event |
ComboSelect Event
The ComboSelect event is triggered when the user selects (by clicking) a built-in combo box item.
TDBGrid_ComboSelect (ByVal ColIndex As Integer)
Arguments
ColIndex is an integer that identifies the column being edited.
The built-in combo box is enabled for a column when the Presentation property of its associated ValueItems collection is set to one of the combo box options.
This event is useful for determining the contents of the cell before the user exits editing mode. By setting the EditActive property to False within this event procedure, you can force the grid to exit editing mode without allowing the user a chance to edit his selection.