在这里,我正在处理 mvvm。如果文本框发生任何更改,我想在 datgrid 中通知 uodate。代码是什么?
 public void Save()
        {if (IsNew)
                _accountCategoryDataSource.Add(_accountCategory);
以上代码用于在数据库中添加数据
以下代码用于在数据网格中加载数据以供查看
private void LoadAllAccounts()
        {
            _allAccounts =
                (from account in _accountDataSource.GetAll() as List<Account>
                 select new AccountViewModel(account, _accountDataSource)).ToList();
            Accounts = new ObservableCollection<AccountViewModel>(_allAccounts);
            if (Accounts.Count > 0)
                SelectedAccount = Accounts[0];
        }`
但我不能有代码在数据网格中显示更新它是如何完成的?