Results 1 to 3 of 3

Thread: listview

  1. #1

    Thread Starter
    Hyperactive Member ibennz's Avatar
    Join Date
    Aug 2010
    Posts
    282

    Exclamation listview

    how i can edit one listview's subitem ?? only one not all , thanks.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: listview

    You first index the ListView's Items collection to get a ListViewItem object. You then index that item's SubItems collection to get a ListViewSubItem. You can then get and/or set the Text property of that subitem.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member ibennz's Avatar
    Join Date
    Aug 2010
    Posts
    282

    Re: listview

    yeah I found how ,


    Code :
    ListView1.Items(0).SubItems(2).Text = Label10.Text

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width