Click here to Skip to main content
16,004,227 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,
I am thankful of you for my previous post's answer. Now I have anew Problem
taht I am adding a row in the database through code. But the new row is not showing in the data grid until I not closed that window and reopen. Where should I use InotifyPropertychanged interface because I am using entity framework with Sqlserver Ce3.5.
Posted

1 solution

If you are populating your Datagrid with an object collection whose class implement INotifyPropertyChanged, make sure the collection its an observable type, then, after you perform the insert operation just call the PropertyChanged Event.

Reference:
http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.aspx[^]
 
Share this answer
 

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



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