Link to home
Start Free TrialLog in
Avatar of ALIHAIDER1
ALIHAIDER1

asked on

How to ensure that a single row will highlight in mshflexgrid.mousemove event.

Dear experts
         I have spent 100 points already for this question but these became useless due to it was not on proper place.
        I want to arrange a subroutine in which i want to select the specific row in mouse move event like this
                 sub mshlfexgrid1_mousemove()
                      mshflexgrid1.row=mshflexgrid1.mouserow
                      mshflexgrid1.rowsel=mshflexgrid1.row
                     end if
but this subroutine highlights nothing just change the row of flexgrid. if i change the routine like this.
             mshflexgrid1.rowsel=mshflexgrid1.mouserow
then it highlights the multi row not a single row each time.
pls help me in thins contest.
thanks
Ali
Avatar of jayeshshah
jayeshshah
Flag of United States of America image

change the
allowBigSelection property to false and then use the above code as

Private Sub MSHFlexGrid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
    MSHFlexGrid1.Row = MSHFlexGrid1.MouseRow
    MSHFlexGrid1.RowSel = MSHFlexGrid1.MouseRow
End Sub

K'Regards

Jayesh
Avatar of ALIHAIDER1
ALIHAIDER1

ASKER

Sorry Jayesh
      Nothing happened. Result is as it was before.
Any other opinion.
Ali
ASKER CERTIFIED SOLUTION
Avatar of Mahesh_kn
Mahesh_kn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial