Datagrid @bind-settings and change filter?


My user can chose to load saved "datagrid" views, columnsize, filter etc will load.

But I have one filter that I don't wan't to load via settings and it is selectedUser. So I tried to similiar

  1. Save filter List filter = selectedUser.ToList();
  2. Load settings
  3. selectedUser = filter.ToList();

But my grid use filter that is in LoadSettings but my dropDown for User are as in seletedUser.

If I try to StateHasChanged() or myGrid.Reload settings are restored to original but then selectedUser works..

Any idéa how to solve this?

I solved it like
var column = loadedSettings.Columns.FirstOrDefault(p => p.Property == "User");
column.FilterValue = selectedUser;