Maintain scroll position when DataGrid is refreshed.

Fester101

New member
Joined
Mar 7, 2005
Messages
1
Programming Experience
10+
There are currently 2 MSMQ Queues feeding a SQL satabase table. I read the data from the table and display it on a front-end in a DataGrid. The front-end has to update the DataGrid every second.

The read only returns 100 records from the table and displays it in the DataGrid and the user can only see the first 20 or so.

My problem is that when I scroll down on the DataGrid and the DataGrid is refreshed, the scrollbar is still in the correct position but the DataGrid does not show the correct data for the scrollbar position, it shows the first 20 records. I need to know how to get the DataGrid to show me the correct data in relation to the scrollbar whenever it is refreshed.
 
Back
Top