Problem in selecting multiple lines in a MSHFlexGrid.
Is there any other way to allow the user to select multiple lines in a MSHFlexGrid?
After selection, Those lines will then fill another Grid.
Is there any other way to allow the user to select multiple lines in a MSHFlexGrid?
After selection, Those lines will then fill another Grid.
Hi Jayrose,
There is really a way to do that. Such behavior can be mimic from a combo box control. You just need to add few event handlers to your MSHFlexGrid. Events like key down, key up, row column change and select change. I think you need another control like button to fill another grid or you can automatically fill the other grid upon selection. Here is an example code that allows you to select upon key down.
Â
Private Sub MSFlexGrid1_KeyDown(KeyCode As Integer, Shift As Integer)
  If Shift = vbShiftMask _
  Then
     m_booKeyShift = True
  End If
  If Shift = vbCtrlMask _
  Then
     m_booKeyCtrl = True
  End If
End Sub
Â
I hope it helps.