Click here to Skip to main content
15,070,233 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a datagrid that displays large amounts of data. As the datagrid loads, I have a label that displays the count. How can I also indicate with the busy indicator that the grid is still loading?

VB
If (DataGrid.ItemsSource IsNot Nothing) Then
            Dim count As Integer = DataGrid.ItemsSource.OfType(Of Object)().Count()
            lblCount_stat.Content = "Count: " & count
        End If
Posted
Updated 7-Feb-11 15:24pm
v2

1 solution

You need to use BackgroundWorker to do that.

Examples:

BackgroundWorker in Silverlight [^]

Responsive UIs for WPF Applications Using Asynchronous Processing[^]

Mark it as answer if it is helpful.
   
Comments
technette 8-Feb-11 12:51pm
   
THAT'S RIGHT! I FORGOT ABOUT THE BACKGROUNDWORKER THANK YOU!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900