VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Events > SelChange Event |
Fired after the selected range (RowSel, ColSel) changes.
Private Sub VSFlexGrid_SelChange()
SelChange is fired after the Row, Col, RowSel or ColSel properties change, either as a result of user actions (mouse or keyboard) or through code. This event is also fired while the user extends the selection with the mouse.
The example below prints the coordinates of the current selection to the debug window when the selection changes:
Private Sub fg_SelChange()
Debug.Print fg.Row & ", " & fg.Col & ", " & fg.RowSel & ", " & fg.ColSel
End Sub