Might be missing the obvious but how do you get the listview to be editable in run mode??
Many thanks
Printable View
Might be missing the obvious but how do you get the listview to be editable in run mode??
Many thanks
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.
Yeah changing the contents - I add a new record to column one and then need to complete the row
But allow the user to do this through the listview - not the code
I'm very interested in learning that #2, actually...Quote:
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 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.
I figured it out....
Code:ListParty.Items(index).SubItems(column).Text = "New String"
did it work coz i tried and it didntQuote:
Originally posted by PeeWee
I figured it out....
Code:ListParty.Items(index).SubItems(column).Text = "New String"
HERE THIS WORKSQuote:
Originally posted by PeeWee
I figured it out....
Code:ListParty.Items(index).SubItems(column).Text = "New String"
VB Code:
ListParty.ListItems(Index).SubItems(columnIndex) = "NewString"