|
-
Mar 3rd, 2002, 11:58 PM
#1
Thread Starter
Addicted Member
Selecting Listview
Hi, I have a few problems with listview:
1) I want to select an item in the listview which later I need to remove an amount of the item from the listview. Let's say I selected Raw Material with an amount of 200. I click "Remove" button and remove 100 unit from the Raw Material. How do I actually do this?
2) I notice that when I select the item in the listview, it allows me to rename the item. What can I do to prevent the user from doing the same thing?
Please help. Thanks
"If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"
-
Mar 4th, 2002, 12:02 AM
#2
-
Mar 4th, 2002, 12:38 AM
#3
Thread Starter
Addicted Member
Sorry, perhaps my question is confusing. This is the scenario...
I have a listview showing item name and total stock.
When I click on the item, I want to have the option to change the total stock and then update it to database.
Clearer now?
"If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"
-
Mar 5th, 2002, 09:00 AM
#4
Need-a-life Member
Sth like this...
VB Code:
ListView.SelectedItem.ListSubItem("Stock") = ListView.SelectedItem.ListSubItem("Stock") - 100
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Mar 5th, 2002, 01:40 PM
#5
Thread Starter
Addicted Member
Thanks a lot, McBrain!
"If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"
-
Mar 5th, 2002, 02:21 PM
#6
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
|