Old data in selectable datagrid

Hello.

I experience issue with the radzen selectable datagrid.

I am owner and developer of Microsoft Dynamics 365 CRM application. To make some things easier, I created tool for copying system configurations between environments(Development, Preproduction and Production).

  1. I run blazor application with radzen datagrid. Data are loaded via DBContext and LoadData approach. Then I select datarow to copy from DEV to PROD. It works fine, data are transfered to production environment.
  2. Then I would like to change in example description of the datarow. I do it in the MS Dyn CRM. Then refresh datagrid using: await sysConfGrid.Reload(); The grid refreshes.
  3. But when I try to update the data on production again, I still see old description in the selectedRows iList.

Please, do you know, why the selectedData list in the grid are not reloaded when the grid is reloaded?

Thanks for advice.

I've never seen such problem before and I don't know what can cause it.

        RadzenDataGrid<LlpSystemconfigurationBase> sysConfGrid;
        IEnumerable<LlpSystemconfigurationBase> sysConfRecords;
        IList<LlpSystemconfigurationBase> sysConfSelectedRecords;

When you select some rows in the sysConfGrid datagrid, the selected rows are stored in sysConfSelectedRecords. If you make sysConfGrid.Reload, sysConfGrid is correctly reloaded from database(DB context is.refreshed) But sysConfSelectedRecords is still outdated/not reloaded. So when you try to work with sysConfSelectedRecords after Reload, you work with old data.

I fixed the problem by setting the sysConfSelectedRecords to null, so you have to select it again and you will have actual data. But its a bit clumsy solution.