There seems to be quite a time lag between setting the ItemSource of the grid and when the grid actually displays the data (about 100 records). Is there an event that fires when this “refresh” is done? I’m trying to show the wait cursor until the grid displays the new data.
Imported from legacy forums. Posted by Lori (had 528 views)
I wonder if the standard FrameworkElement SourceUpdated event could work for you?
If it does please let us know.
Additionally you could consider doing a load using the BackgroundWorker. Checkout the Chapter 3 source download for the Apress Pro WPF book by Matthew MacDonald for some examples of using BackgroundWorker.
FrameworkElement.SourceUpdated event (* Note: I’ve never tried this): …
DataGridCongrol m_dataGrid = ….
m_dataGrid.SourceUpdated += new EventHandler<DataTransferEventArgs>(DataGrid_SourceUpdated);