G
Guest
Hello,
When clicking on a button the selected item from the 1st listbox is supposed
to be added to the 2nd listbox:
The code:
Private Sub btnInfo_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnInfo.Click
Dim sVal As String
Me.lstKatInfo.SelectedIndex = -1
sVal = Me.lstKat.SelectedItem.Text
Me.lstKatInfo.Items.Add(sVal)
End Sub
When I enter text values in the first listbox everything works fine, but
when the
listbox items are added in the Page_Load event from a DataTable
this problems occurs.
Any ideas?
Thanks in advance,
Kristian
When clicking on a button the selected item from the 1st listbox is supposed
to be added to the 2nd listbox:
The code:
Private Sub btnInfo_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnInfo.Click
Dim sVal As String
Me.lstKatInfo.SelectedIndex = -1
sVal = Me.lstKat.SelectedItem.Text
Me.lstKatInfo.Items.Add(sVal)
End Sub
When I enter text values in the first listbox everything works fine, but
when the
listbox items are added in the Page_Load event from a DataTable
this problems occurs.
Any ideas?
Thanks in advance,
Kristian