Wotcha, folks.
When using the FlexGrid, is it possible to select multiple individual cells using the Control key and mouse button?
I know Shift - Select works, but Control - Select doens't seem to.
Am I missing something?
Much ta.
Jack.
Printable View
Wotcha, folks.
When using the FlexGrid, is it possible to select multiple individual cells using the Control key and mouse button?
I know Shift - Select works, but Control - Select doens't seem to.
Am I missing something?
Much ta.
Jack.
No. The Flexgrid does not support the "extended selection" mode like other controls. It should be easy enough to code that functionality and in fact has been done before...
From an old post -
Turn off the automatic highlighting of the flexgrid by setting the Highlight property to flexHighlightNever. Then use this code in the click event.
VB Code:
Private Sub MSFlexGrid1_Click() With MSFlexGrid1 .Row = .MouseRow .Col = .MouseCol If .CellBackColor = vbCyan Then .CellBackColor = vbWhite Else .CellBackColor = vbCyan End If End With End Sub