
This step-by-step article shows you how to query a database on a background thread and use databinding to display the results in a DataGrid object.
When large queries to a database are executed, the application may become unresponsive for a long period of time. To avoid this behavior and decrease the waiting time of the user, the query can be executed on a background thread, releasing the application for other tasks until the data is returned from the database and databinding is performed.
|