G
Guest
Hi,
I have two listboxes on my form.
One has a list of available values while the other is a list of selected
values.
So I select a value from list 1 and add it to list 2 when "add" button is
clicked.
I can also select a value from list 2 and remove it on clicking "Remove"
button, which would again add it to list 1.
Now the lists are both bound to custom list objects. when I add or remove, I
manipulate the list and then rebind it to the list boxes.
The elements seem to get added but when I add element 1, a space is seen in
list 2. When I add element 2, element 1 is visible while element 2 is not
visisble. Same with remove.
So in essence, everytime I add or remove an object for the first time, I
cannot see the item in the list, though a blank row is seens. After every
subsequent add or remove the previous element becomes visible.
Any solutions please? Why can't the add and remove of items be seen
instantly ?
Thanks
I have two listboxes on my form.
One has a list of available values while the other is a list of selected
values.
So I select a value from list 1 and add it to list 2 when "add" button is
clicked.
I can also select a value from list 2 and remove it on clicking "Remove"
button, which would again add it to list 1.
Now the lists are both bound to custom list objects. when I add or remove, I
manipulate the list and then rebind it to the list boxes.
The elements seem to get added but when I add element 1, a space is seen in
list 2. When I add element 2, element 1 is visible while element 2 is not
visisble. Same with remove.
So in essence, everytime I add or remove an object for the first time, I
cannot see the item in the list, though a blank row is seens. After every
subsequent add or remove the previous element becomes visible.
Any solutions please? Why can't the add and remove of items be seen
instantly ?
Thanks