We are experiencing a similar issue to what have been described here:
WPF Datagrid default selected 0th row after setting Datasource
We have our WPF GridControl bound to the following public property:
public IList<IndexRow> IndexRows
indexRows = value;
This property is being set on a 5 minutes interval. However, whenever this property is being set the GridControl resets it's selected row back to the first row.
Is there any resolution to this?
We have examined this problem. This behavior is by design, since it is not possible to maintain a FocusedRow if you re-assign the GridControl.DataSource.
If objects in your collection are not recreated on update, you can bind the TableView.FocusedRow property to corresponding object in your ViewModel (by using TwoWay binding) and in this task the FocuserRow should be maintained.
Otherwise, you need to restore the FocusedRow manually.