Click here to Skip to main content
15,891,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
I have xceed propertygrid that bound to a Bussiness object. but when we editing object in property grid then setters of  the custom object getting called only on focus lost. how to force xceed propertygrid to update viewModel on propertyChanged.
My XAML looks like is below.
-----------------------------------
PropretyGrid Name ="PropertyGrid" SelectedObject="{Binding Item, UpdateSourecTrigger=PropertyChanged}"
Posted
Updated 1-Oct-16 8:14am
v3
Comments
Rav! Srivastava 2-Oct-16 14:32pm    
Have you implemented inotifypropertychanged interface in your viewmodel and called the RaisedPropertyChanged inside the set accessor? If not please do this and also call the RaisedPropertyChanged for binding collection property.
Raghuwansh kumar 3-Oct-16 2:25am    
Yes, My viewModel Implements INotifyPropertyChanged, as soon i edit any property from propertygrid(GUI) i am expecting setter should get called & validation get triggered, but its happening on focus lost only not on PropertyChanged. i tried to RaisedPropertyChanged in setter since its not called on Changed so not helping.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900