I use the following function to load Horse names starting with a given letter
The first call returns and displays the list in the grid view
But at the second and following calls, while the HorseList is correctly generated, the display in the grid does not display the new list
I know that this questionhas been discussed many times but I have not found the solution .....
Thanks in advance
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Public Function LoadNode(ByVal FirstLetter As String) As Boolean
Try
Dim aHorse As New mHorse
Dim Horses As New List(Of Horse)
'Load the Horses list where the name starts with "FirstLetter"
Horses = aHorse.LoadNode(FirstLetter)
If Horses.Count > 0 Then
gvHorse.BeginUpdate()
gvHorse.DataSource = Horses
gvHorse.EndUpdate()
Else
End If
Catch ex As Exception
End Try
End Function