Problem in selecting multiple lines in a MSHFlexGrid.

Asked By 20 points N/A Posted on -
qa-featured

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.

SHARE
Answered By 0 points N/A #115696

Problem in selecting multiple lines in a MSHFlexGrid.

qa-featured

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.

Login/Register to Answer

Related Questions