Click to See Complete Forum and Search --> : Edit listview in run mode
cim3
Sep 24th, 2002, 04:33 AM
Might be missing the obvious but how do you get the listview to be editable in run mode??
Many thanks
Slow_Learner
Sep 24th, 2002, 04:42 AM
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.
cim3
Sep 24th, 2002, 04:48 AM
Yeah changing the contents - I add a new record to column one and then need to complete the row
cim3
Sep 24th, 2002, 04:50 AM
But allow the user to do this through the listview - not the code
PeeWee
Jan 5th, 2003, 05:47 AM
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...
DevGrp
Jan 5th, 2003, 06:30 AM
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.
PeeWee
Jan 5th, 2003, 11:33 AM
I figured it out....
ListParty.Items(index).SubItems(column).Text = "New String"
internet_wiz
Feb 12th, 2003, 01:57 PM
Originally posted by PeeWee
I figured it out....
ListParty.Items(index).SubItems(column).Text = "New String"
did it work coz i tried and it didnt
internet_wiz
Feb 13th, 2003, 01:57 AM
Originally posted by PeeWee
I figured it out....
ListParty.Items(index).SubItems(column).Text = "New String"
HERE THIS WORKS
ListParty.ListItems(Index).SubItems(columnIndex) = "NewString"
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.