Link to home
Start Free TrialLog in
Avatar of Edithf
Edithf

asked on

Select Multiple Rows in MSFlexGrid

Does anyone know how to select multiple rows in MSFlexGrid ? I cannot find this properties in the properties window. Do I have to write up a function or use another grid to allow me to select multiple rows ??
Avatar of TT
TT

Where u drag your mouse over flxGrid1 to highlight
multiple rows on flexgrid,  u can recognize the rows selected by :

    liStart = flxGrid1.Row
    liEnd = flxGrid1.RowSel
    If liStart > liEnd Then
        liTmp = liStart
        liStart = liEnd
        liEnd = liTmp
    End If
    liStart is the starting of selection & liEnd is where your
    selection end
Avatar of Edithf

ASKER

The point is the row does not remain highlighted after I release my mouse button then how do I know it is hightlighted multiple row or not.
Avatar of Edithf

ASKER

TT

Sorry u are right. I just found out that somewhere in the codes they put .rowsel = .row no wonder I could not select multiple row. Pls re-post your answer & I'll give u points.
ASKER CERTIFIED SOLUTION
Avatar of TT
TT

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