You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in runtime using mvvm community toolkit is possible to update a cell, after some property change?
I set my binding in the view with C#
dataGrid.SetBinding(DataGrid.ItemsSourceProperty, nameof(attachmenListViewModel.Attachments), BindingMode.TwoWay);
in the viewmodel:
public ObservableCollection Attachments { get; } = new();
I load the data and it shows the info Ok in the Grid
later in a command
Attachments.First().Status = "Requested";
Nothing happens
Can you please help me with this issue, I'm missing something ? Thanks
The text was updated successfully, but these errors were encountered:
The Attachment object would need to inherit from INotifyPropertyChanged and the Status property would need to fire an OnPropertyChanged event in the setter.
If you do that, then the properties should update. I just tried it, and it works fine.
See the latest commit in this branch for an example:
Hi, in runtime using mvvm community toolkit is possible to update a cell, after some property change?
I set my binding in the view with C#
dataGrid.SetBinding(DataGrid.ItemsSourceProperty, nameof(attachmenListViewModel.Attachments), BindingMode.TwoWay);
in the viewmodel:
public ObservableCollection Attachments { get; } = new();
I load the data and it shows the info Ok in the Grid
later in a command
Attachments.First().Status = "Requested";
Nothing happens
Can you please help me with this issue, I'm missing something ? Thanks
The text was updated successfully, but these errors were encountered: