Hi I was using the following with a standard listBox
however when I try to use the RadListControl I get an error on this line
error Value of Type telerik.win.controls.UI.RadListDataItem ' cannot be converted to mainSystem.Tenant?
please advise
Private
Sub
RadListControl1_SelectedIndexChanged(
ByVal
sender
As
System.
Object
,
ByVal
e
As
Telerik.WinControls.UI.Data.PositionChangedEventArgs)
Handles
RadListControl1.SelectedIndexChanged
If
RadListControl1.SelectedIndex > -1
Then
Dim
tenants
As
Tenant = RadListControl1.SelectedItem
RadTextBox5.Text = tenants.ID
RadTextBox6.Text = tenants.FirstName
RadTextBox7.Text = tenants.Existing
RadTextBox8.Text = tenants.LastName
End
If
End
Sub
however when I try to use the RadListControl I get an error on this line
Dim
tenants
As
Tenant = RadListControl1.SelectedItem
please advise