ComponentOne True DBGrid Pro 8
Button Property

Button Property

Controls whether a button appears within the current cell.

Syntax

column.Button= boolean

Remarks

Read/Write at run time and design time.

If True, a button will be displayed in the upper right corner of the current cell at run time.

If False (the default), no button will be displayed.

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.

When you set the Presentation property of a column's ValueItems collection to either of the combo box options (sorted or unsorted), then the Button property for that column will be set to True. Similarly, if you set the Presentation property to the normal (text) or radio button option, then the Button property for that column will be set to False.

When you set the DropDown property of a column to the name of a TDBDropDown control, then the Button property for that column will be set to True. Similarly, if you set the DropDown property of a column to an empty string, then the Button property for that column will be set to False.

Note

If both the Button and ButtonAlways properties are True, then all cells within the column are displayed with in-cell buttons, not just the current cell.

See Also

Column Object

 

 


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

Product Support Forum  |  Documentation Feedback