I'm designing a new winform application in C# but I having trouble finding the best solution for a specific part of it.
The main part of the app displays 20 rows x 10 columns of data in a grid that it reads every second from an XML, which it does in on a background thread.
The issue I have is with displaying the data. I have a DataSet that receives the data every second and I set this as the data source for my DataGridView which I then update to reflect the changes on screen.
It's quite quick and I don't see the repainting on screen but if I click and highlight a cell, when the update triggers, the focus of my cell jumps back to the top left cell.
Is there anything I can do to stop this from happening whilst maintaining the updating every second?
Also - is the DatGridView the best control for my needs or should I consider another control (or even building a custom control?) If so - what would you recommend?