how to select next value in listbox after moving a value from it?
-
Dear All, I am using 2 listboxes, 1st containing values and 2nd to hold values selected from 1st listbox. On double clicking in 1st listbox selected value moves to 2nd listbox. Requirment is after movment of selected value to 2nd listbox countrol should be back in 1st listbox and next or previous item (of moved value)should be selected unless their remain some item in 1st listbox. Kindly guide, Yawer
-
Dear All, I am using 2 listboxes, 1st containing values and 2nd to hold values selected from 1st listbox. On double clicking in 1st listbox selected value moves to 2nd listbox. Requirment is after movment of selected value to 2nd listbox countrol should be back in 1st listbox and next or previous item (of moved value)should be selected unless their remain some item in 1st listbox. Kindly guide, Yawer
-
Dear All, I am using 2 listboxes, 1st containing values and 2nd to hold values selected from 1st listbox. On double clicking in 1st listbox selected value moves to 2nd listbox. Requirment is after movment of selected value to 2nd listbox countrol should be back in 1st listbox and next or previous item (of moved value)should be selected unless their remain some item in 1st listbox. Kindly guide, Yawer
I cheat with this one, create a table with a selected column set to 1 or 0 depending which LB you want it in. I then have a loadgrid method that filters a dataview based on the selected col and loads into each LB (I use listviews). Double click changes the selected value and the LBs are reloaded. A couple of caveats, each dataview need to be a copy of the table and the table should be quite small. Benifit, the items are sorted by the dataview when you reload.
Never underestimate the power of human stupidity RAH