in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

C1List.SelectedText

Last post 03-26-2008 8:33 AM by C1_JamesS. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-21-2008 6:39 AM

    • rumen1
    • Top 500 Contributor
    • Joined on 06-19-2006
    • Posts 8

    C1List.SelectedText

    Hello,

    After a filtered list ....

          Me.C1List.ClearItems()

          For i = 0 To LA.NumAlimenti - 1

                   If ...(condition filter) then

                              C1List.AddItem(LA.Alimenti(i).strCodRumen & ";" & LA.Alimenti(i).strDescrizione

                  End if

          next i

    and using the scroll bar, selecting a row ....

    Private Sub C1List_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles C1List.Click

    AlimentoSelezionato = Me.C1List.SelectedText

    .......

    gives a wrong index.

    Why?

     Regards, Andrea Davoli

    Filed under:
  • 03-26-2008 8:33 AM In reply to

    Re: C1List.SelectedText

    Hello Andrea,

     

    Try using RowContaining method to get the index of a row.

     

    Thanks,

    James Smith

    Hello,

    After a filtered list ....

          Me.C1List.ClearItems()

          For i = 0 To LA.NumAlimenti - 1

                   If ...(condition filter) then

                              C1List.AddItem(LA.Alimenti(i).strCodRumen & ";" & LA.Alimenti(i).strDescrizione

                  End if

          next i

    and using the scroll bar, selecting a row .....

    Private Sub C1List_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles C1List.Click

    AlimentoSelezionato = Me.C1List.SelectedText

    .......

    gives a wrong index.

    Why?

     Regards, Andrea Davoli



    http://helpcentral.componentone.com/cs/forums/p/74712/203100.aspx#203100

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.