0

I have a DataGrid whose items can be edited by external ComboBoxes and TextBoxes (that is, the DataGrid SelectedItem is binded whith the same object as ComboBoxes and TextBoxes).

When I edit an Item in the external TextBlock the DataGrid selected item updates automatically. However when I edit an Item using the external comboboxes the DataGrid doesn't update.

I tried using the following methods when SelectionChanged event is triggered, but it didn't work.

MyDataGrid.CommitEdit();
MyDataGrid.CancelEdit();
MyDataGrid.Items.Refresh();

Any idea?

Guilherme Campos
  • 369
  • 7
  • 20

1 Answers1

0

try to use the textbox events to trigger it, when the data is edited by them it will put it back in its place. or use a buttom

MooshBeef
  • 279
  • 1
  • 5
  • 15