ListViewItem

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

    #1

    ListViewItem

    I have populated the ListViewItem for display into 5
    column headers. I have set aside two columns to be
    populated after a button is selected for recalculation.

    How do I assign information to the columns in the
    ListViewItem to be redisplayed?

    Please help.

    Thanks in advance!
  • Jan Tielens

    #2
    Re: ListViewItem

    Hi Kenny

    In the button click event you can loop through all your items in the
    listview:

    For Each li As ListViewItem In ListView1.Items
    li.SubItems(3). Text = "CalculcatedVal ue"
    li.SubItems(4). Text = "CalculcatedVal ue"
    Next

    --
    Greetz

    Jan Tielens
    _______________ _______________ __
    Read my weblog: http://weblogs.asp.net/jan


    "Kenny" <anonymous@disc ussions.microso ft.com> wrote in message
    news:02af01c3c2 b5$3a553e40$a30 1280a@phx.gbl.. .[color=blue]
    > I have populated the ListViewItem for display into 5
    > column headers. I have set aside two columns to be
    > populated after a button is selected for recalculation.
    >
    > How do I assign information to the columns in the
    > ListViewItem to be redisplayed?
    >
    > Please help.
    >
    > Thanks in advance![/color]


    Comment

    • Kenny

      #3
      Re: ListViewItem

      Thanks
      [color=blue]
      >-----Original Message-----
      >Hi Kenny
      >
      >In the button click event you can loop through all your[/color]
      items in the[color=blue]
      >listview:
      >
      >For Each li As ListViewItem In ListView1.Items
      > li.SubItems(3). Text = "CalculcatedVal ue"
      > li.SubItems(4). Text = "CalculcatedVal ue"
      >Next
      >
      >--
      >Greetz
      >
      >Jan Tielens
      >______________ _______________ ___
      >Read my weblog: http://weblogs.asp.net/jan
      >
      >
      >"Kenny" <anonymous@disc ussions.microso ft.com> wrote in[/color]
      message[color=blue]
      >news:02af01c3c 2b5$3a553e40$a3 01280a@phx.gbl. ..[color=green]
      >> I have populated the ListViewItem for display into 5
      >> column headers. I have set aside two columns to be
      >> populated after a button is selected for recalculation.
      >>
      >> How do I assign information to the columns in the
      >> ListViewItem to be redisplayed?
      >>
      >> Please help.
      >>
      >> Thanks in advance![/color]
      >
      >
      >.
      >[/color]

      Comment

      Working...