Pavithra L

Pavithra L

  • NA
  • 336
  • 63.7k

How to set time formate in datagridview cell in c#

Nov 19 2015 2:37 AM
Hai,
 
In my project I need to enter the machine running time , Total running time and Idle time in datgridview cells .
 
Here I want to set the time format in datgridview cells, which means I just enter only the number ,system will separate the hour and minutes.
 
For an example:
I am just typing only the numbers 1100,1200 like vise.
 starttime endtime totaltime idle time
 11:00AM 12:00PM 13:0002:00
 
How can I do this.  Here total time will calculate automatically based on the start and end time . How can I do this , please anybody help this question I need to finish it quickly.
 
Thanks in advance. 

Answers (24)