Sign In|Join
Home/Silverlight.NET Forums/Data and Service-Oriented Development/WCF RIA Services/Context.PropertyChanged fires on one insert only
Last post Aug 03, 2009 05:03 AM by samw
Member
164 Points
282 Posts
Aug 03, 2009 05:03 AM | LINK
I typed up the code on page 55 of the overview document. I added a button to insert a row. I noticed two things:
1.) Context.PropertyChanged fires on one insert only
2.) The datagrid does not refresh itself after an insert unless I reset the ItemsSource. Is that the default behavior?
Thanks,
Sam
private void InsertButton_Click(object sender, RoutedEventArgs e) { Context.Feedbacks.Add(new Feedback { Date = DateTime.Now }); //dg.ItemsSource = Context.Feedbacks; }
samw
Member
164 Points
282 Posts
Context.PropertyChanged fires on one insert only
Aug 03, 2009 05:03 AM | LINK
I typed up the code on page 55 of the overview document. I added a button to insert a row. I noticed two things:
1.) Context.PropertyChanged fires on one insert only
2.) The datagrid does not refresh itself after an insert unless I reset the ItemsSource. Is that the default behavior?
Thanks,
Sam