jumah

jumah

  • NA
  • 4
  • 3.9k

subtract tow DateTimePicker in datagridview using c#

Oct 28 2012 9:44 AM

 

Hi,

This is the datagrid I have:-

when I press a button the the datagrid fill with the data as following

 

EmpName

Status

Firsttime

Lasttime

Minuts late

Hours between last and first time

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The status is a checked box if selected disable the datagridview row if not calculate the hours between lasttime and firsttime for every datagrid row

 

Please help me in solving the problem using winform and c#

thanks