ComponentOne True DBGrid Pro 8
ButtonClick Event

 

Object Reference> True DBGrid Events> ButtonClick Event

ButtonClick Event

This event is fired when the current cell's built-in button is clicked.

Syntax

TDBGrid_ButtonClick (ByVal ColIndex As Integer)

Arguments

ColIndex is an integer that identifies the column whose button was clicked.

Remarks

The built-in button is enabled for a column when its Button property is set to True, its DropDown property is set to the name of a valid TDBDropDown control, or the Presentation property of its associated ValueItems collection is set to one of the combo box options.

Typically, you enable the column button when you want to drop down a Visual Basic control (such as the built-in combo box, a bound list box, or even another True DBGrid control) for editing or data entry. When the button in the current cell is clicked, the ButtonClick event will be fired. You can then write code to drop down the desired control from the cell.

See Also

TDBGrid Control

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback