Save and Restore the rows states when resetting.
Environment
Product Version | 2018.1 220 |
Product | RadGridView for WinForms |
Description
There are cases where you need to reset or rebind the grid which will reset the expanded rows and the position of the scrollbar.
Solution
This article shows how you can save/restore the sates and the scrollbar position.
1. First you need a class to store the state of each row.
2. Now you can create the methods that will save and then restore the grid state:
3. The final step is to use the above methods, this snippet show how restore the scrollbar position as well: