© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
4 replies
Elio

❔ Property Changed

Hello there, i'm currently developing an app in wpf using the model mvvm and i do not understand why my datagrid won't refresh when i call :
OnPropertyChanged(nameof(Thicknesses))
OnPropertyChanged(nameof(Thicknesses))

to specify, i've set my datagrid to
ItemsSource="{Binding Thicknesses, UpdateSourceTrigger=PropertyChanged}"
ItemsSource="{Binding Thicknesses, UpdateSourceTrigger=PropertyChanged}"

and the List
Thicknesses
Thicknesses
is supposed to be refreshed by 2 things :
- the first one is when i change the
Material
Material
which each one contains a list of thicknesses
- the second on is when i add a new thickness
OnPropertyChanged(nameof(Thicknesses))
OnPropertyChanged(nameof(Thicknesses))
is well triggered when one of the 2 case i mentioned is filled but the update seem to works only if change the
Material
Material
but not when i add a new thickness to it.
Animation.gif
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Invoking an event on property changed (WPF)
C#CC# / help
17mo ago
❔ A property is changed even though it shouldn't?
C#CC# / help
3y ago
Shadow property, but property is defined?
C#CC# / help
3y ago
✅ Navigation Property
C#CC# / help
2y ago