Object Reference > True DBGrid Events > HeadClick Event |
HeadClick Event
The HeadClick event occurs when the user clicks on the header for a particular grid column.
object_HeadClick (ByVal ColIndex As Integer)
Arguments
ColIndex is an integer that identifies the column header that was clicked.
One possible action for this event is to re-sort the Recordset object based on the selected column.