0

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

Anatoliy Nikolaev
  • 22,370
  • 15
  • 69
  • 68

1 Answers1

0

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?.

Community
  • 1
  • 1
AntLaC
  • 1,215
  • 10
  • 22
  • The datagrid is bound to a dataview. Upon update how would I determine that one of my 5 fields actually had a change? – John Lairson Jul 18 '13 at 16:32
  • There should be a `IsDirty` flag set. I've edited my answer to include a link to this exact same question. – AntLaC Jul 18 '13 at 16:41