Visual Basic: DataGrid Control
HeadClick Event
Occurs when the user clicks on the header for a particular column of a DataGrid control.
Syntax
Private Subobject**_HeadClick(**[****index As Integer,]colindexAs Integer)
The HeadClick event syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
index | An integer that identifies a control if it is in a control array. |
colindex | An integer that identifies the column. |
Remarks
One possible use for this event is to resort the Recordset object based on the selected column.