M
Max
Hi,
I would appreciate your help on this. I did some research and couldn't
find anything to solve this...
I have two multiselect listboxes (listFrom and listTo), the listFrom
is bounded to a datatable. I want to be able to select items in the
listFrom then click on a button which would make a copy of those items
in the listTo. At best I was able to achive is the following:
Dim i As Integer
For i = 0 To listFrom.SelectedItems.Count - 1
listTo.Items.Add(listFrom.SelectedItems.Item(i))
Next
For example, if I select 5 items in the listFrom I get 5 items in the
listTo but they are all displayed as "System.DataRowView" What do I
need to do to get the "right" behavior? Do I get this because my
listFrom is bounded to a datatable?
Thank you for your input!
I would appreciate your help on this. I did some research and couldn't
find anything to solve this...
I have two multiselect listboxes (listFrom and listTo), the listFrom
is bounded to a datatable. I want to be able to select items in the
listFrom then click on a button which would make a copy of those items
in the listTo. At best I was able to achive is the following:
Dim i As Integer
For i = 0 To listFrom.SelectedItems.Count - 1
listTo.Items.Add(listFrom.SelectedItems.Item(i))
Next
For example, if I select 5 items in the listFrom I get 5 items in the
listTo but they are all displayed as "System.DataRowView" What do I
need to do to get the "right" behavior? Do I get this because my
listFrom is bounded to a datatable?
Thank you for your input!