ColSel Property Example

The following code returns the value of the ColSel property into the first cell of MSHFlexGrid1. This value changes as the user clicks on various selections of cell groups.

Note   If you are using the MSFlexGrid, substitute "MSHFlexGrid1" with "MSFlexGrid1."

Private Sub MSHFlexGrid1_MouseUp _
(Button As Integer, Shift As Integer, x As Single, _
y As Single)   
   MSHFlexGrid1.Text = MSHFlexGrid1.ColSel
End Sub