How do I add a timestamp to a gridview

前端 未结 3 1053
耶瑟儿~
耶瑟儿~ 2021-01-27 20:00

How do I add a timestamp to a gridview that shows the last time a row was edited? I\'ve been searching Google but haven\'t found anything helpful yet.

I tried to create

3条回答
  •  灰色年华
    2021-01-27 20:44

    I think you can handle this on the database side. Since it is a data bound gridview, you just need a datetime field with default value of NOW() for MySql. for SQL Server, I believe a persistent computed column with datetime.now() would do.

提交回复
热议问题