Gull
  • Gull
  • Newbie Topic Starter
8 years ago
Hi,


the more I work with iGrid the more I love it.

I have set up a grid including a combo list column. The combo list contains 12 items and the user has to make a choice per row.
Even thought the width of the cell is 300 px the user has to hit the tiny 16x16 px combo box arrow in order to display the values.

Now my thought is to use the Click-event on the cell to display the list. If the cell is in the right column then the combo list opens. Unfortunately I cannot find any means of displaying the list.

How do I achieve that?

Thanks very much in advance for your help!


Kind regards,
John



Gull
  • Gull
  • Newbie Topic Starter
8 years ago
Hi,


I just came across a working solution for my little problem: I simulate a keypress of the "F4" key which is the standard-Windows key for opening a combo list.

Private Sub iGrid1_Click(ByVal lRowIfAny As Long, ByVal lColIfAny As Long)
    If lColIfAny = iGrid1.ColIndex("Action") Then
      Application.SendKeys "{F4}"
   End If
End Sub


Not very elegant, but: It's working.

However, I would very much appreciate if someone could let me know a more profound solution.


Kind regards,
John



Igor/10Tec
8 years ago
A more elegant solution is to call the RequestEditCurCell method.
Gull
  • Gull
  • Newbie Topic Starter
8 years ago
Fantastic! Works like a charm!

Private Sub iGrid1_Click(ByVal lRowIfAny As Long, ByVal lColIfAny As Long)
    If lColIfAny = iGrid1.ColIndex("Aktion") Then
      Call iGrid1.RequestEditCurCell
   End If
End Sub

Thanks a lot!
Igor/10Tec
7 years ago
To gkrish45. Your messages were moved to the new thread:

https://10tec.com/forum/...bobox-doesn-t-open-fully