문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top