Results 1 to 9 of 9

Thread: Edit listview in run mode

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Location
    Devon, UK
    Posts
    181

    Edit listview in run mode

    Might be missing the obvious but how do you get the listview to be editable in run mode??
    Many thanks
    Wind and waves resolves all problems.

  2. #2
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    How do you mean, editable in run mode? Do you mean some kind of interface to allow a user to add/remove columns and stuff, or do you mean changing the contents of a listview from code at runtime? #2 is pretty easy if that's what you're talking about.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Location
    Devon, UK
    Posts
    181
    Yeah changing the contents - I add a new record to column one and then need to complete the row
    Wind and waves resolves all problems.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Location
    Devon, UK
    Posts
    181
    But allow the user to do this through the listview - not the code
    Wind and waves resolves all problems.

  5. #5
    New Member PeeWee's Avatar
    Join Date
    Jan 2003
    Location
    Nybro, Sweden
    Posts
    15

    Smile

    Originally posted by Slow_Learner
    How do you mean, editable in run mode? Do you mean some kind of interface to allow a user to add/remove columns and stuff, or do you mean changing the contents of a listview from code at runtime? #2 is pretty easy if that's what you're talking about.
    I'm very interested in learning that #2, actually...
    "Two wrongs won't make one right, but three left does!"

  6. #6
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    I dont think thats possible. I was faced with that problem before. How I did it was use a textbox and a button to change the rows. I'll post an example later.
    Dont gain the world and lose your soul

  7. #7
    New Member PeeWee's Avatar
    Join Date
    Jan 2003
    Location
    Nybro, Sweden
    Posts
    15
    I figured it out....

    Code:
    ListParty.Items(index).SubItems(column).Text = "New String"
    "Two wrongs won't make one right, but three left does!"

  8. #8
    Lively Member internet_wiz's Avatar
    Join Date
    Nov 2001
    Location
    Gonagbango
    Posts
    91
    Originally posted by PeeWee
    I figured it out....

    Code:
    ListParty.Items(index).SubItems(column).Text = "New String"
    did it work coz i tried and it didnt

  9. #9
    Lively Member internet_wiz's Avatar
    Join Date
    Nov 2001
    Location
    Gonagbango
    Posts
    91

    Talking Found

    Originally posted by PeeWee
    I figured it out....

    Code:
    ListParty.Items(index).SubItems(column).Text = "New String"
    HERE THIS WORKS
    VB Code:
    1. ListParty.ListItems(Index).SubItems(columnIndex) = "NewString"

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