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

    <P>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</P>
    <P> </P>
    <P>Thanks,</P>
    <P>Sandipan</P>
  • Replied 8 September 2017, 1:40 pm EST

    <p>Here's one way...</p><p>Private Sub FpSpread1_ComboCloseUp(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.EditorNotifyEventArgs) Handles FpSpread1.ComboCloseUp<br>Dim c As FarPoint.Win.FpCombo<br>c = CType(e.EditingControl, FarPoint.Win.FpCombo)<br>Dim o As Object = c.List.Item(x)<br>MsgBox(o)<br><br>End Sub<br></p><p>Where 'x' is the index you want to retrieve.<br></p>
Need extra support?

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

Learn More

Forum Channels