|
-
Jul 1st, 2001, 07:54 AM
#1
Edit a listview
Can someone please help me with this ..
I have a listview will info in it - and i wanna edit the labals in it - (i tried in the propaty the autoedit and manual edit and it didnt edit it (with the mouse over it and with one click.)
Can someone please Help me with it (With code or adviZ)
Tnx
-
Jul 1st, 2001, 09:13 AM
#2
With the LabelEdit proerty set to lvwAutomatic, you should be able to edit the labels as you describe. But there is a catch here - if you are using the Listview in the Report view and are showing several columns of data, only the Text property (the first, or leftmost column) will be able to be edited. Under no circumstances will the ListView control let you edit the other columns (the SubItems).
I use the LV as a database grid in my apps, and what I do is basically the following:
When the user selects a row from the grid (the LV), copy that info to a set of textboxes.
Let the user edit the data in the textboxes.
When the user is done, write the edited data back to the corresponding item in the LV.
Hope this helps.
"It's cold gin time again ..."
Check out my website here.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|