[SOLVED] DataGridView Refresh Data on Timer resets sort and position view

Answered
0
0

I have a DataGridView that shows open and delivered orders and the data refreshes every 30 seconds.  If the user is scrolled down looking at a recod, has a filter or sort all this is lost when the datasource gets refreshed.

What is the recommended way to refresh the data with out messing up what the user is looking at?

Thanks -Tim

  • You must to post comments
Best Answer
0
0

Depends how you refresh the data. A reload will reload the grid. The Wisej datagrid is capable of updating single cells dynamically but there is an internal threshold (I believe is 32, not sure) where it decides that it’s more economical (traffic wise) to reload. You can also use the javascript calls directly:

https://github.com/iceteagroup/wisej-js/blob/master/wisej.web.DataGrid.js

Look at setCellValue() and setCellValues() for bulk updates.

If you want to attach a sample I may be able to help more.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.