I have a DataGrid
bound to a DataView
. One of the fields is a last update time stamp. Is it possible to have this field update with the current date and time if 1 of 5 selected other fields on a given row is modified?
Thanks
I have a DataGrid
bound to a DataView
. One of the fields is a last update time stamp. Is it possible to have this field update with the current date and time if 1 of 5 selected other fields on a given row is modified?
Thanks
When you do the actual save to the database is when you should update the update field using either DateTime.Now or DateTime.UTCNow
.
Look at this questions as well, What is the best way to know if the user has changed data in the DataGrid?.