Updating Dates with WPF DatePicker
Posted by: Julia Lerman Blog - Dont Be Iffy...,
on 10 Nov 2010 |
View original | Bookmarked: 0 time(s)
I spent hours and hours trying to find this piece of information. Finally I was very happy to have Julia Kornich, a technical writer on the EF team, save the day! By default a DatePicker control does not notify its datasource of changes. Even when you are doing a drag & drop application. I had a DataGrid where every column but the date columns was pushing changes back to the database. What was wrong with the DatePicker? You need to explicitly tell it to do the job with the UpdateSourceTrigger...