Object Reference > True DBGrid Properties > ButtonHeader Property |
ButtonHeader Property
Controls whether a column header acts like a standard button.
column.ButtonHeader= boolean
Read/Write at run time and design time.
If True, the column header depresses like a standard Windows command button when clicked by the user.
If False (the default), the AllowColSelect property determines how the column header responds to mouse input.
Typically, you set the ButtonHeader property to True when you want to perform a column-based action (such as sorting) when the user clicks a column header. Note that the HeadClick event always fires when the user clicks a column header, even if ButtonHeader is False.
Note
If ButtonHeader is True, the user must hold down the Ctrl key in order to select or move columns with the mouse.