Signo.X
Well-known member
hello all ,
Ive got 2 list boxes, one is bind to a DB column , i.e. it reads data from column in an access db table.
the other list box i use to move selected items from the first list box.
example :
list_box1 list_box2
1 2
3
> >>
i have a button > to move one record at the time and >> to move all the records from box1 to list 2 at one hit.
i use the following when the user clicks on > :
ListBox2.Items.Add(ListBox2.Text)
it works fine , but then how do i remove the value from list_box1 so its only in list_box2?
when i try list_box1.items.removeat(index) it gives me an error :
Cannot modify the Items collection when the DataSource property is set
how can i remove it without any problems ??????
also , when the user clicks on >> , how do i copy all the items in list1 to list2???
I'm getting sick of this , i spend almost 4 hours trying different things to fix that problem...
please help!!
~Signo.X
Ive got 2 list boxes, one is bind to a DB column , i.e. it reads data from column in an access db table.
the other list box i use to move selected items from the first list box.
example :
list_box1 list_box2
1 2
3
> >>
i have a button > to move one record at the time and >> to move all the records from box1 to list 2 at one hit.
i use the following when the user clicks on > :
ListBox2.Items.Add(ListBox2.Text)
it works fine , but then how do i remove the value from list_box1 so its only in list_box2?
when i try list_box1.items.removeat(index) it gives me an error :
Cannot modify the Items collection when the DataSource property is set
how can i remove it without any problems ??????
also , when the user clicks on >> , how do i copy all the items in list1 to list2???
I'm getting sick of this , i spend almost 4 hours trying different things to fix that problem...
please help!!
~Signo.X