How do you stream data to a DataGridView so it asynchronously retrieves data from the database and asynchronously updates the datagrid? I wantit to actlikethe datagrid inSql Server management tool that populates data to the grid as it retreives it.I tried the following:
1. Retrieve the data using a SqlDataReader asynchonrously using BeginExecuteReader
2. In the resulting callbackpopulate the DataGridView on another thread using the BackgroundWorker class. This calls adelegate on the mainformthread topopulate the grid usingtheInvoke method.
3. A dataset is then populated using DataSet.Load method.
Thanks,
Mike