I have a requirement to maintain the selection on a XamGrid after refreshing the data.
For example,
The grid is loaded and I selected the 3rd row and after that I need to reload the data and after reloading the records the 3rd row (or the previosly selected record) should be selected.
i.e it should be highlighted (so that user can able to see the record that was selected before ).
Can somebody help me on this?
Hello,
Thank you for posting in our forums!
You will need to keep track of the selected cell before the refresh occurs, and then afterwards set the selection again.
Please see the following on setting the selection programmatically for more information on this.
https://es.infragistics.com/help/wpf/xamgrid-setting-selection-programmatically
If you need further assistance with this, please let me know and I will be glad to help.
Hi,
Thank you for your suggestion. I tried doing what you said , but visually after refreshing data, the focus on the previous selected cell in XamGrid is lost. I want the cell to be highlighted even after refresh, just like when we click the mouse on the XamGrid cell.