Listview selected item

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tiago Salgado

    #1

    Listview selected item

    I everyone... I've got a listview (details) ... and i'm trying to unselect
    any item selected...

    In a combobox, e.g, i can put this:

    ComboBox1.Selec tedIndex = -1

    I want to do this but in a listview control... can anyone help me?

    Thanks


    --
    Tiago Salgado

  • Tiago Salgado

    #2
    Re: Listview selected item

    I've already made it... lol ... i use this code:

    listview1.selec tedindices.Clea r()

    On Sun, 09 Jul 2006 16:18:34 +0100, Tiago Salgado <tiagosalgado.d eveloper
    wrote:
    I everyone... I've got a listview (details) ... and i'm trying to
    unselect any item selected...
    >
    In a combobox, e.g, i can put this:
    >
    ComboBox1.Selec tedIndex = -1
    >
    I want to do this but in a listview control... can anyone help me?
    >
    Thanks
    >
    >


    --
    Tiago Salgado

    Comment

    • sethuganesh@gmail.com

      #3
      Re: Listview selected item

      hi,

      Try the following option

      listview1.items .item(index).se lected = false

      where index is the item that you want to deselect.pls reply me whether
      it works or not.

      Thanks,
      Ganesh

      Tiago Salgado wrote:
      I've already made it... lol ... i use this code:
      >
      listview1.selec tedindices.Clea r()
      >
      On Sun, 09 Jul 2006 16:18:34 +0100, Tiago Salgado <tiagosalgado.d eveloper>
      wrote:
      >
      I everyone... I've got a listview (details) ... and i'm trying to
      unselect any item selected...

      In a combobox, e.g, i can put this:

      ComboBox1.Selec tedIndex = -1

      I want to do this but in a listview control... can anyone help me?

      Thanks
      >
      >
      >
      --
      Tiago Salgado
      http://www.foruns.org

      Comment

      • Tiago Salgado

        #4
        Re: Listview selected item

        In my last post, i indicate the solution that i've used...

        Thanks

        On Mon, 10 Jul 2006 14:22:53 +0100, <sethuganesh@gm ail.comwrote:
        hi,
        >
        Try the following option
        >
        listview1.items .item(index).se lected = false
        >
        where index is the item that you want to deselect.pls reply me whether
        it works or not.
        >
        Thanks,
        Ganesh
        >
        Tiago Salgado wrote:
        >I've already made it... lol ... i use this code:
        >>
        >listview1.sele ctedindices.Cle ar()
        >>
        >On Sun, 09 Jul 2006 16:18:34 +0100, Tiago Salgado
        ><tiagosalgado. developer>
        >wrote:
        >>
        I everyone... I've got a listview (details) ... and i'm trying to
        unselect any item selected...
        >
        In a combobox, e.g, i can put this:
        >
        ComboBox1.Selec tedIndex = -1
        >
        I want to do this but in a listview control... can anyone help me?
        >
        Thanks
        >
        >
        >>
        >>
        >>
        >--
        >Tiago Salgado
        >http://www.foruns.org
        >


        --
        Tiago Salgado

        Comment

        Working...