How to Return Combo Box Text based on Index

Posted by: sandipan on 8 September 2017, 1:40 pm EST

  • Posted 8 September 2017, 1:40 pm EST

    I am using Winform 4.o fpSpread. I have a Combo Box cell type column. Each combo box cel takes values 'A','B','C','D'. Now i want to pass an index and get the corresponding item returned from the combo box cell . How do i do that? Kindly help


     


    Thanks,


    Sandipan

  • Replied 8 September 2017, 1:40 pm EST

    Here's one way...

    Private Sub FpSpread1_ComboCloseUp(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.EditorNotifyEventArgs) Handles FpSpread1.ComboCloseUp
    Dim c As FarPoint.Win.FpCombo
    c = CType(e.EditingControl, FarPoint.Win.FpCombo)
    Dim o As Object = c.List.Item(x)
    MsgBox(o)

    End Sub

    Where 'x' is the index you want to retrieve.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels