System.Windows.Forms.ListView doesn't update at runtime


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: System.Windows.Forms.ListView doesn't update at runtime

  1. #1
    Marcel Gnoth Guest

    System.Windows.Forms.ListView doesn't update at runtime

    Hi,

    if I change during runtime the value of a subitem then the control doesn't
    show the change. Also calling update or refresh doesn't help.

    Is it a feature of the Beta or make I something wrong?

    <<lvwWorkerNames.Items(Index).SubItems(0).Text = Text>>

    bye Marcel


    --
    --------------------------------------------
    NTeam GmbH
    Marcel Gnoth

    Lietzenburger Str. 107, 10707 Berlin
    fon: +49 30 880975-0
    email: mgnoth@nteam.de
    www: www.gnoth.net

    Termin- und Infromationsmanagement im Krankenhaus
    www.charitime.de




  2. #2
    Shane Courtrille Guest

    Re: System.Windows.Forms.ListView doesn't update at runtime


    Hey Marcel.

    Try this

    lvwWorkerNames.Item(Index).SubItems(1).Text = Text

    It appears that the ListView.SubItems stores the actual listitem as SubItem(0)...
    weird..

    "Marcel Gnoth" <mgnoth@nteam.de> wrote:
    >Hi,
    >
    >if I change during runtime the value of a subitem then the control doesn't
    >show the change. Also calling update or refresh doesn't help.
    >
    >Is it a feature of the Beta or make I something wrong?
    >
    ><<lvwWorkerNames.Items(Index).SubItems(0).Text = Text>>
    >
    >bye Marcel
    >
    >
    >--
    >--------------------------------------------
    >NTeam GmbH
    >Marcel Gnoth
    >
    >Lietzenburger Str. 107, 10707 Berlin
    >fon: +49 30 880975-0
    >email: mgnoth@nteam.de
    >www: www.gnoth.net
    >
    >Termin- und Infromationsmanagement im Krankenhaus
    >www.charitime.de
    >
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center