I have datagridview whose datasource is datatable.
I have two columns in datagridview:
NAME, IN TIME
After the datagridview is loaded, I want to add a new column called DURATION which is a timer column i.e. based on the IN TIME, DURATION column should display a stopwatch with the timespan interval of CURRENT TIME-IN TIME.
How do I make the DURATION column stopwatch to continue the timer for every seconds like digital clock?
You can add a string column to
DataTable
and use it as duration column. Then you can subscribe toTick
event of a timer which you set it's interval to 1000 and show the result of count down timer in duration column: