Pregunta

So I have this weird problem, I successfully binded a List to my DataGrid, and everything works as it should. However, i have a ComboBoxColumn that i use to fill out some of the rows.

So for example, if ComboBoxColumn's selected item is "B" then the TextColumn should change to "Blld". I achieved this by using a

DataGridPreparingCellForEditEventArgs

And a property get;set on my List with a

 PropertyChanged event

The DataGrid does update, however it will only show the new text "Blld" (the updated text) when i scroll down on my DataGrid (until you can't see the Row in question) and then back again.

What's going on?

¿Fue útil?

Solución

For anyone else having this problem, i found out what was causing this weird thing. I had an INotifyPropertyChanged event on the List i was binding to, but not the the type I was using.

You have to implement a PropertyChanged event to each of the values inside your List.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top