ListView Multicolumn

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

    ListView Multicolumn

    VS 2005

    How can you tell if a value is contained in a specific column (let's say
    column 1 named Status) of a ListView ?

    In a list box you could go...

    If ListBox1.Items. Contains(strWha tever) then

    How would you accomplish this using a ListView ?





  • Mr. Arnold

    #2
    Re: ListView Multicolumn


    "Rob" <robc1@yahoo.co mwrote in message
    news:HoKdnca8gM QQCPnbnZ2dnUVZ_ qCmnZ2d@comcast .com...
    VS 2005
    >
    How can you tell if a value is contained in a specific column (let's say
    column 1 named Status) of a ListView ?
    >
    In a list box you could go...
    >
    If ListBox1.Items. Contains(strWha tever) then
    >
    How would you accomplish this using a ListView ?
    >
    Wouldn't that be off of subitem? It's been a log time since I worked with a
    ListView.

    I think each subitem represents data in a column.

    Comment

    • Rob

      #3
      Re: ListView Multicolumn

      Yes, I think it goes like this...

      MsgBox(ListView 1.Items(intCoun t).SubItems(0). Text)
      MsgBox(ListView 1.Items(intCoun t).SubItems(1). Text)

      Thanks,
      Rob


      "Mr. Arnold" <MR. Arnold@Arnold.c omwrote in message
      news:OhkxCcwpHH A.4388@TK2MSFTN GP03.phx.gbl...
      >
      "Rob" <robc1@yahoo.co mwrote in message
      news:HoKdnca8gM QQCPnbnZ2dnUVZ_ qCmnZ2d@comcast .com...
      >VS 2005
      >>
      >How can you tell if a value is contained in a specific column (let's say
      >column 1 named Status) of a ListView ?
      >>
      >In a list box you could go...
      >>
      >If ListBox1.Items. Contains(strWha tever) then
      >>
      >How would you accomplish this using a ListView ?
      >>
      >
      Wouldn't that be off of subitem? It's been a log time since I worked with
      a ListView.
      >
      I think each subitem represents data in a column.

      Comment

      • Cor Ligthert [MVP]

        #4
        Re: ListView Multicolumn

        Rob,

        As platinumBay you already showed, try to work with the data and not with
        the controls as it is direct by a user typed in data.

        Cor

        "Rob" <robc1@yahoo.co mschreef in bericht
        news:HoKdnca8gM QQCPnbnZ2dnUVZ_ qCmnZ2d@comcast .com...
        VS 2005
        >
        How can you tell if a value is contained in a specific column (let's say
        column 1 named Status) of a ListView ?
        >
        In a list box you could go...
        >
        If ListBox1.Items. Contains(strWha tever) then
        >
        How would you accomplish this using a ListView ?
        >
        >
        >
        >
        >

        Comment

        • Rob

          #5
          Re: ListView Multicolumn

          I am working on a program that has many user defined controls within
          flowlayout panels within tab controls....

          I need a control that keeps track of each of these user defined controls and
          their status. Only one user control may be "active" within a given flow
          layout panel within a tab control. So in the unbound list view I keep a
          "primary key" of the individual user control, as well as its status (2
          separate columns).

          When perfoming actions that change status, I iterate thru the list view to
          make status changes.

          I have figured out how to access the data now.

          Is there a better way to do this ?

          Thanks


          "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
          news:%23aibm3xp HHA.4532@TK2MSF TNGP06.phx.gbl. ..
          Rob,
          >
          As platinumBay you already showed, try to work with the data and not with
          the controls as it is direct by a user typed in data.
          >
          Cor
          >
          "Rob" <robc1@yahoo.co mschreef in bericht
          news:HoKdnca8gM QQCPnbnZ2dnUVZ_ qCmnZ2d@comcast .com...
          >VS 2005
          >>
          >How can you tell if a value is contained in a specific column (let's say
          >column 1 named Status) of a ListView ?
          >>
          >In a list box you could go...
          >>
          >If ListBox1.Items. Contains(strWha tever) then
          >>
          >How would you accomplish this using a ListView ?
          >>
          >>
          >>
          >>
          >>
          >
          >

          Comment

          • Cor Ligthert [MVP]

            #6
            Re: ListView Multicolumn

            Rob,

            There are non binded controls, simple databinded controls (textbox etc),
            complex databind controls combobox, datagrid etc.

            Try the later for database work.

            A listview is fore non database work. In fact it exist from endless
            collections, keep in mind that the first column is very much different from
            all the others. A listview has as well more ways it can be showed however
            always with the first column on top. (it is just an older version of windows
            explorer).



            Here a sample we have more samples. Have a look as well to the treeview
            because that is very much simular.

            Cor

            "Rob" <robc1@yahoo.co mschreef in bericht
            news:5KidnQDN58 vY0PjbnZ2dnUVZ_ qGjnZ2d@comcast .com...
            >I am working on a program that has many user defined controls within
            >flowlayout panels within tab controls....
            >
            I need a control that keeps track of each of these user defined controls
            and their status. Only one user control may be "active" within a given
            flow layout panel within a tab control. So in the unbound list view I
            keep a "primary key" of the individual user control, as well as its status
            (2 separate columns).
            >
            When perfoming actions that change status, I iterate thru the list view to
            make status changes.
            >
            I have figured out how to access the data now.
            >
            Is there a better way to do this ?
            >
            Thanks
            >
            >
            "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
            news:%23aibm3xp HHA.4532@TK2MSF TNGP06.phx.gbl. ..
            >Rob,
            >>
            >As platinumBay you already showed, try to work with the data and not with
            >the controls as it is direct by a user typed in data.
            >>
            >Cor
            >>
            >"Rob" <robc1@yahoo.co mschreef in bericht
            >news:HoKdnca8g MQQCPnbnZ2dnUVZ _qCmnZ2d@comcas t.com...
            >>VS 2005
            >>>
            >>How can you tell if a value is contained in a specific column (let's say
            >>column 1 named Status) of a ListView ?
            >>>
            >>In a list box you could go...
            >>>
            >>If ListBox1.Items. Contains(strWha tever) then
            >>>
            >>How would you accomplish this using a ListView ?
            >>>
            >>>
            >>>
            >>>
            >>>
            >>
            >>
            >
            >

            Comment

            • Rob

              #7
              Re: ListView Multicolumn

              Thanks Cor,

              But I think my question remains... Is using a non-bound ListView a good
              control to use for keeping track of "active" controls in the situation I
              present below ?

              The scenario...
              I need a control that keeps track of each of these user defined controls
              and their status. Only one user control may be "active" within a given
              flow layout panel within a tab control. So in the unbound list view I
              keep a "primary key" of the individual user control, as well as its status
              (2 separate columns).

              Rob



              "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
              news:OQJqIj5pHH A.3736@TK2MSFTN GP03.phx.gbl...
              Rob,
              >
              There are non binded controls, simple databinded controls (textbox etc),
              complex databind controls combobox, datagrid etc.
              >
              Try the later for database work.
              >
              A listview is fore non database work. In fact it exist from endless
              collections, keep in mind that the first column is very much different
              from all the others. A listview has as well more ways it can be showed
              however always with the first column on top. (it is just an older version
              of windows explorer).
              >

              >
              Here a sample we have more samples. Have a look as well to the treeview
              because that is very much simular.
              >
              Cor
              >
              "Rob" <robc1@yahoo.co mschreef in bericht
              news:5KidnQDN58 vY0PjbnZ2dnUVZ_ qGjnZ2d@comcast .com...
              >>I am working on a program that has many user defined controls within
              >>flowlayout panels within tab controls....
              >>
              >I need a control that keeps track of each of these user defined controls
              >and their status. Only one user control may be "active" within a given
              >flow layout panel within a tab control. So in the unbound list view I
              >keep a "primary key" of the individual user control, as well as its
              >status (2 separate columns).
              >>
              >When perfoming actions that change status, I iterate thru the list view
              >to make status changes.
              >>
              >I have figured out how to access the data now.
              >>
              >Is there a better way to do this ?
              >>
              >Thanks
              >>
              >>
              >"Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
              >news:%23aibm3x pHHA.4532@TK2MS FTNGP06.phx.gbl ...
              >>Rob,
              >>>
              >>As platinumBay you already showed, try to work with the data and not
              >>with the controls as it is direct by a user typed in data.
              >>>
              >>Cor
              >>>
              >>"Rob" <robc1@yahoo.co mschreef in bericht
              >>news:HoKdnca8 gMQQCPnbnZ2dnUV Z_qCmnZ2d@comca st.com...
              >>>VS 2005
              >>>>
              >>>How can you tell if a value is contained in a specific column (let's
              >>>say column 1 named Status) of a ListView ?
              >>>>
              >>>In a list box you could go...
              >>>>
              >>>If ListBox1.Items. Contains(strWha tever) then
              >>>>
              >>>How would you accomplish this using a ListView ?
              >>>>
              >>>>
              >>>>
              >>>>
              >>>>
              >>>
              >>>
              >>
              >>
              >
              >

              Comment

              • PlatinumBay

                #8
                Re: ListView Multicolumn

                Rob,

                No, I don't believe it is. You don't want to use a listview for keeping
                track of that stuff, rather an in-memory object serialized maybe to
                ViewState.

                However, I would recommend using the MultiView control, which allows one
                view to be visible at a time.


                Hope this helps,

                Steve

                "Rob" <robc1@yahoo.co mwrote in message
                news:I4mdnRF0X9 PAMvjbnZ2dnUVZ_ hqdnZ2d@comcast .com...
                Thanks Cor,
                >
                But I think my question remains... Is using a non-bound ListView a good
                control to use for keeping track of "active" controls in the situation I
                present below ?
                >
                The scenario...
                I need a control that keeps track of each of these user defined controls
                and their status. Only one user control may be "active" within a given
                flow layout panel within a tab control. So in the unbound list view I
                keep a "primary key" of the individual user control, as well as its status
                (2 separate columns).
                >
                Rob
                >
                >
                >
                "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
                news:OQJqIj5pHH A.3736@TK2MSFTN GP03.phx.gbl...
                >Rob,
                >>
                >There are non binded controls, simple databinded controls (textbox etc),
                >complex databind controls combobox, datagrid etc.
                >>
                >Try the later for database work.
                >>
                >A listview is fore non database work. In fact it exist from endless
                >collections, keep in mind that the first column is very much different
                >from all the others. A listview has as well more ways it can be showed
                >however always with the first column on top. (it is just an older version
                >of windows explorer).
                >>
                >http://www.vb-tips.com/dbpages.aspx?...0-a31addde6d2c
                >>
                >Here a sample we have more samples. Have a look as well to the treeview
                >because that is very much simular.
                >>
                >Cor
                >>
                >"Rob" <robc1@yahoo.co mschreef in bericht
                >news:5KidnQDN5 8vY0PjbnZ2dnUVZ _qGjnZ2d@comcas t.com...
                >>>I am working on a program that has many user defined controls within
                >>>flowlayout panels within tab controls....
                >>>
                >>I need a control that keeps track of each of these user defined controls
                >>and their status. Only one user control may be "active" within a given
                >>flow layout panel within a tab control. So in the unbound list view I
                >>keep a "primary key" of the individual user control, as well as its
                >>status (2 separate columns).
                >>>
                >>When perfoming actions that change status, I iterate thru the list view
                >>to make status changes.
                >>>
                >>I have figured out how to access the data now.
                >>>
                >>Is there a better way to do this ?
                >>>
                >>Thanks
                >>>
                >>>
                >>"Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
                >>news:%23aibm3 xpHHA.4532@TK2M SFTNGP06.phx.gb l...
                >>>Rob,
                >>>>
                >>>As platinumBay you already showed, try to work with the data and not
                >>>with the controls as it is direct by a user typed in data.
                >>>>
                >>>Cor
                >>>>
                >>>"Rob" <robc1@yahoo.co mschreef in bericht
                >>>news:HoKdnca 8gMQQCPnbnZ2dnU VZ_qCmnZ2d@comc ast.com...
                >>>>VS 2005
                >>>>>
                >>>>How can you tell if a value is contained in a specific column (let's
                >>>>say column 1 named Status) of a ListView ?
                >>>>>
                >>>>In a list box you could go...
                >>>>>
                >>>>If ListBox1.Items. Contains(strWha tever) then
                >>>>>
                >>>>How would you accomplish this using a ListView ?
                >>>>>
                >>>>>
                >>>>>
                >>>>>
                >>>>>
                >>>>
                >>>>
                >>>
                >>>
                >>
                >>
                >
                >

                Comment

                • Rob

                  #9
                  Re: ListView Multicolumn

                  Steve,

                  Hmmm...

                  This is a windows app. What is the specific downside of using a list view
                  for this ?

                  Basically, imagine a user control that has a Start and Stop button on it.
                  There could be 10 of these user controls sitting in a flow layout panel
                  inside of a tab control. Only 1 of these controls can have a Start button
                  "active" at any one point in time. Clicking a Start button on one of the
                  other 10 user controls "stops" the previously "started" user control and
                  activates the currently chosen user control.

                  Now that I think about it... I may be able to iterate thru all the controls
                  except for the chosen "Started" control and stop them without having to
                  update the List view.

                  Anyway... it is not necessarily a matter of viewing only one control at a
                  time. I did not make that clear.

                  Thanks for your input,

                  Rob




                  "PlatinumBa y" <stevanich@comm unity.nospamwro te in message
                  news:uvYRaP6pHH A.4772@TK2MSFTN GP04.phx.gbl...
                  Rob,
                  >
                  No, I don't believe it is. You don't want to use a listview for keeping
                  track of that stuff, rather an in-memory object serialized maybe to
                  ViewState.
                  >
                  However, I would recommend using the MultiView control, which allows one
                  view to be visible at a time.

                  >
                  Hope this helps,
                  >
                  Steve
                  >
                  "Rob" <robc1@yahoo.co mwrote in message
                  news:I4mdnRF0X9 PAMvjbnZ2dnUVZ_ hqdnZ2d@comcast .com...
                  >Thanks Cor,
                  >>
                  >But I think my question remains... Is using a non-bound ListView a good
                  >control to use for keeping track of "active" controls in the situation I
                  >present below ?
                  >>
                  >The scenario...
                  >I need a control that keeps track of each of these user defined controls
                  >and their status. Only one user control may be "active" within a given
                  >flow layout panel within a tab control. So in the unbound list view I
                  >keep a "primary key" of the individual user control, as well as its
                  >status
                  >(2 separate columns).
                  >>
                  >Rob
                  >>
                  >>
                  >>
                  >"Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
                  >news:OQJqIj5pH HA.3736@TK2MSFT NGP03.phx.gbl.. .
                  >>Rob,
                  >>>
                  >>There are non binded controls, simple databinded controls (textbox etc),
                  >>complex databind controls combobox, datagrid etc.
                  >>>
                  >>Try the later for database work.
                  >>>
                  >>A listview is fore non database work. In fact it exist from endless
                  >>collections , keep in mind that the first column is very much different
                  >>from all the others. A listview has as well more ways it can be showed
                  >>however always with the first column on top. (it is just an older
                  >>version of windows explorer).
                  >>>
                  >>http://www.vb-tips.com/dbpages.aspx?...0-a31addde6d2c
                  >>>
                  >>Here a sample we have more samples. Have a look as well to the treeview
                  >>because that is very much simular.
                  >>>
                  >>Cor
                  >>>
                  >>"Rob" <robc1@yahoo.co mschreef in bericht
                  >>news:5KidnQDN 58vY0PjbnZ2dnUV Z_qGjnZ2d@comca st.com...
                  >>>>I am working on a program that has many user defined controls within
                  >>>>flowlayou t panels within tab controls....
                  >>>>
                  >>>I need a control that keeps track of each of these user defined
                  >>>controls and their status. Only one user control may be "active"
                  >>>within a given flow layout panel within a tab control. So in the
                  >>>unbound list view I keep a "primary key" of the individual user
                  >>>control, as well as its status (2 separate columns).
                  >>>>
                  >>>When perfoming actions that change status, I iterate thru the list view
                  >>>to make status changes.
                  >>>>
                  >>>I have figured out how to access the data now.
                  >>>>
                  >>>Is there a better way to do this ?
                  >>>>
                  >>>Thanks
                  >>>>
                  >>>>
                  >>>"Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
                  >>>news:%23aibm 3xpHHA.4532@TK2 MSFTNGP06.phx.g bl...
                  >>>>Rob,
                  >>>>>
                  >>>>As platinumBay you already showed, try to work with the data and not
                  >>>>with the controls as it is direct by a user typed in data.
                  >>>>>
                  >>>>Cor
                  >>>>>
                  >>>>"Rob" <robc1@yahoo.co mschreef in bericht
                  >>>>news:HoKdnc a8gMQQCPnbnZ2dn UVZ_qCmnZ2d@com cast.com...
                  >>>>>VS 2005
                  >>>>>>
                  >>>>>How can you tell if a value is contained in a specific column (let's
                  >>>>>say column 1 named Status) of a ListView ?
                  >>>>>>
                  >>>>>In a list box you could go...
                  >>>>>>
                  >>>>>If ListBox1.Items. Contains(strWha tever) then
                  >>>>>>
                  >>>>>How would you accomplish this using a ListView ?
                  >>>>>>
                  >>>>>>
                  >>>>>>
                  >>>>>>
                  >>>>>>
                  >>>>>
                  >>>>>
                  >>>>
                  >>>>
                  >>>
                  >>>
                  >>
                  >>
                  >
                  >

                  Comment

                  • Cor Ligthert [MVP]

                    #10
                    Re: ListView Multicolumn

                    Rob,

                    I am not sure what you are doing. However if you want to keep track on form,
                    I would certainly look at that treeview. On the form the controls are mostly
                    build up to as a tree. If it is just in memory, than you have to explain
                    more, but certainly a control is than the worst solution.

                    Cor

                    "Rob" <robc1@yahoo.co mschreef in bericht
                    news:I4mdnRF0X9 PAMvjbnZ2dnUVZ_ hqdnZ2d@comcast .com...
                    Thanks Cor,
                    >
                    But I think my question remains... Is using a non-bound ListView a good
                    control to use for keeping track of "active" controls in the situation I
                    present below ?
                    >
                    The scenario...
                    I need a control that keeps track of each of these user defined controls
                    and their status. Only one user control may be "active" within a given
                    flow layout panel within a tab control. So in the unbound list view I
                    keep a "primary key" of the individual user control, as well as its status
                    (2 separate columns).
                    >
                    Rob
                    >
                    >
                    >
                    "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
                    news:OQJqIj5pHH A.3736@TK2MSFTN GP03.phx.gbl...
                    >Rob,
                    >>
                    >There are non binded controls, simple databinded controls (textbox etc),
                    >complex databind controls combobox, datagrid etc.
                    >>
                    >Try the later for database work.
                    >>
                    >A listview is fore non database work. In fact it exist from endless
                    >collections, keep in mind that the first column is very much different
                    >from all the others. A listview has as well more ways it can be showed
                    >however always with the first column on top. (it is just an older version
                    >of windows explorer).
                    >>
                    >http://www.vb-tips.com/dbpages.aspx?...0-a31addde6d2c
                    >>
                    >Here a sample we have more samples. Have a look as well to the treeview
                    >because that is very much simular.
                    >>
                    >Cor
                    >>
                    >"Rob" <robc1@yahoo.co mschreef in bericht
                    >news:5KidnQDN5 8vY0PjbnZ2dnUVZ _qGjnZ2d@comcas t.com...
                    >>>I am working on a program that has many user defined controls within
                    >>>flowlayout panels within tab controls....
                    >>>
                    >>I need a control that keeps track of each of these user defined controls
                    >>and their status. Only one user control may be "active" within a given
                    >>flow layout panel within a tab control. So in the unbound list view I
                    >>keep a "primary key" of the individual user control, as well as its
                    >>status (2 separate columns).
                    >>>
                    >>When perfoming actions that change status, I iterate thru the list view
                    >>to make status changes.
                    >>>
                    >>I have figured out how to access the data now.
                    >>>
                    >>Is there a better way to do this ?
                    >>>
                    >>Thanks
                    >>>
                    >>>
                    >>"Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
                    >>news:%23aibm3 xpHHA.4532@TK2M SFTNGP06.phx.gb l...
                    >>>Rob,
                    >>>>
                    >>>As platinumBay you already showed, try to work with the data and not
                    >>>with the controls as it is direct by a user typed in data.
                    >>>>
                    >>>Cor
                    >>>>
                    >>>"Rob" <robc1@yahoo.co mschreef in bericht
                    >>>news:HoKdnca 8gMQQCPnbnZ2dnU VZ_qCmnZ2d@comc ast.com...
                    >>>>VS 2005
                    >>>>>
                    >>>>How can you tell if a value is contained in a specific column (let's
                    >>>>say column 1 named Status) of a ListView ?
                    >>>>>
                    >>>>In a list box you could go...
                    >>>>>
                    >>>>If ListBox1.Items. Contains(strWha tever) then
                    >>>>>
                    >>>>How would you accomplish this using a ListView ?
                    >>>>>
                    >>>>>
                    >>>>>
                    >>>>>
                    >>>>>
                    >>>>
                    >>>>
                    >>>
                    >>>
                    >>
                    >>
                    >
                    >

                    Comment

                    • Rob

                      #11
                      Re: ListView Multicolumn

                      Cor,

                      I would like to know "why" it is bad....

                      Maybe I am missing something, but as I open up new forms and user controls,
                      it becomes hard to know what the state of the control is in another location
                      (user control on a flow layout panel on a tab on another form)... the list
                      view has been set-up as a "Public Property" and is therefore accessible...

                      Thanks,
                      Rob


                      "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
                      news:%23SwTje%2 3pHHA.3736@TK2M SFTNGP03.phx.gb l...
                      Rob,
                      >
                      I am not sure what you are doing. However if you want to keep track on
                      form, I would certainly look at that treeview. On the form the controls
                      are mostly build up to as a tree. If it is just in memory, than you have
                      to explain more, but certainly a control is than the worst solution.
                      >
                      Cor
                      >
                      "Rob" <robc1@yahoo.co mschreef in bericht
                      news:I4mdnRF0X9 PAMvjbnZ2dnUVZ_ hqdnZ2d@comcast .com...
                      >Thanks Cor,
                      >>
                      >But I think my question remains... Is using a non-bound ListView a good
                      >control to use for keeping track of "active" controls in the situation I
                      >present below ?
                      >>
                      >The scenario...
                      >I need a control that keeps track of each of these user defined controls
                      >and their status. Only one user control may be "active" within a given
                      >flow layout panel within a tab control. So in the unbound list view I
                      >keep a "primary key" of the individual user control, as well as its
                      >status
                      >(2 separate columns).
                      >>
                      >Rob
                      >>
                      >>
                      >>
                      >"Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
                      >news:OQJqIj5pH HA.3736@TK2MSFT NGP03.phx.gbl.. .
                      >>Rob,
                      >>>
                      >>There are non binded controls, simple databinded controls (textbox etc),
                      >>complex databind controls combobox, datagrid etc.
                      >>>
                      >>Try the later for database work.
                      >>>
                      >>A listview is fore non database work. In fact it exist from endless
                      >>collections , keep in mind that the first column is very much different
                      >>from all the others. A listview has as well more ways it can be showed
                      >>however always with the first column on top. (it is just an older
                      >>version of windows explorer).
                      >>>
                      >>http://www.vb-tips.com/dbpages.aspx?...0-a31addde6d2c
                      >>>
                      >>Here a sample we have more samples. Have a look as well to the treeview
                      >>because that is very much simular.
                      >>>
                      >>Cor
                      >>>
                      >>"Rob" <robc1@yahoo.co mschreef in bericht
                      >>news:5KidnQDN 58vY0PjbnZ2dnUV Z_qGjnZ2d@comca st.com...
                      >>>>I am working on a program that has many user defined controls within
                      >>>>flowlayou t panels within tab controls....
                      >>>>
                      >>>I need a control that keeps track of each of these user defined
                      >>>controls and their status. Only one user control may be "active"
                      >>>within a given flow layout panel within a tab control. So in the
                      >>>unbound list view I keep a "primary key" of the individual user
                      >>>control, as well as its status (2 separate columns).
                      >>>>
                      >>>When perfoming actions that change status, I iterate thru the list view
                      >>>to make status changes.
                      >>>>
                      >>>I have figured out how to access the data now.
                      >>>>
                      >>>Is there a better way to do this ?
                      >>>>
                      >>>Thanks
                      >>>>
                      >>>>
                      >>>"Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
                      >>>news:%23aibm 3xpHHA.4532@TK2 MSFTNGP06.phx.g bl...
                      >>>>Rob,
                      >>>>>
                      >>>>As platinumBay you already showed, try to work with the data and not
                      >>>>with the controls as it is direct by a user typed in data.
                      >>>>>
                      >>>>Cor
                      >>>>>
                      >>>>"Rob" <robc1@yahoo.co mschreef in bericht
                      >>>>news:HoKdnc a8gMQQCPnbnZ2dn UVZ_qCmnZ2d@com cast.com...
                      >>>>>VS 2005
                      >>>>>>
                      >>>>>How can you tell if a value is contained in a specific column (let's
                      >>>>>say column 1 named Status) of a ListView ?
                      >>>>>>
                      >>>>>In a list box you could go...
                      >>>>>>
                      >>>>>If ListBox1.Items. Contains(strWha tever) then
                      >>>>>>
                      >>>>>How would you accomplish this using a ListView ?
                      >>>>>>
                      >>>>>>
                      >>>>>>
                      >>>>>>
                      >>>>>>
                      >>>>>
                      >>>>>
                      >>>>
                      >>>>
                      >>>
                      >>>
                      >>
                      >>
                      >
                      >

                      Comment

                      Working...