I'm getting data from a database and displaying that information dynamically in silverlight. At some point in time I'm calling a refresh function via a timer:
Dim myDispatcherTimer As New System.Windows.Threading.DispatcherTimer()
myDispatcherTimer.Interval = New TimeSpan(0, 0, 0, 0, 7000)
AddHandler myDispatcherTimer.Tick, AddressOf Timer_Tick
which calls this:
Private Sub Timer_Tick(ByVal o As Object, ByVal sender As EventArgs)
LoadGrid() ' reloads data
I'm really not looking to do a Children.Clear though as this causes the children to disappear and re-appear. So how do I associate incoming data with what is reloading (keeping in mind values may have inserted,updated,or deleted) and repaint without clearing?
Thanks in advanced for any help.