Removing items from listview .... problem
-
Dear friends, I have a problem that i want to depackage a computer package. Situation is as under. i have following tables 1. Casing (CasingID, Model, Status, Notes) 2. Motherboard (MotherboardID, Model, Status, Notes) 3. Keyboard (KeyboardID, Model, Status, Notes) 4. Mouse (MouseID, Model, Status, Notes) 5. Status (StatusID, Status) (values) 1, Packaged 2, Available 3, Damaged etc.etc.etc.... 6. Package (CasingID, MotherboardID, KeyboardID, MouseID) now i have a form (PACKAGE FORM) on which there is a listview with following columns ITEMID ITEM-TYPE SPECS 1 Keyborad multimedia... 2 Motherboard 16-bit architecture... 3 Mouse wirless.... 4 Keyboard non multimedia... 5 Casing ATX power supply... OK, now try to understand care fully that before saving a package, A function (i have written to change the status which checks every time in the packge) moves table to table and changes the status of items to "PACKAGED". this function is working properly. Problem is that when i reload the package to remove some items from the package then how i can keep in mind that what items are removed from the package because i have to again change their status to "AVAILABLE" i have two solutions already with me 1. when ever i remove some item from listview, then immediately change the status in the reference table 2. Add an array to the project which save my removed items and in the end a fuction should go to all the reference tables to change the status have you any other shortest solution for that.... please