Link to home
Start Free TrialLog in
Avatar of manne
manne

asked on

VideoSoft vsflex control

I'm testing this grid control and I want the combobox in a cell to drop down then I click on it. It only works when I use the keybord, I thougth the following code would work but it doesn't any idees? Which grid control do you prefer, why?


Private Sub vsFlexArray1_BeforeEdit(ByVal Row As Long, ByVal Col As Long, Cancel As Boolean)
    If Col = 1 Then vsFlexArray1.ComboList = "Red|Green|Blue|Other"

End Sub

Private Sub vsFlexArray1_Click()
    Call vsFlexArray1_BeforeEdit(vsFlexArray1.Row, vsFlexArray1.Col, False)
 
End Sub

ASKER CERTIFIED SOLUTION
Avatar of clifABB
clifABB

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
Avatar of clifABB
clifABB

Oh, by the way, the reason your code wasn't working is because
Combolist only works within BeforeEdit *and* when the cell is in edit mode.
Avatar of manne

ASKER

I short and good answer, thank you!