Sub CountriesCombo_LoadingItems(ByVal sender As Object, ByVal e As ComboBoxLoadingItemsEventArgs)
If Not (String.IsNullOrEmpty(e.Text)) Then
Dim tryout As Integer = 0
If Integer.TryParse(e.Text, tryout) Then
citiesDataSource.SelectParameters(0).DefaultValue = e.Text
End If
End If
End Sub
|