i could not sum time using Array.
i have one column in gridView which stored extra times of worker and i want sum all times and want get total hours and minutes how to do this please ?
TimeSpan p = new TimeSpan();
for ( int i = 0; i < grid_horas.Rows.Count; i++ )
{
//TimeSpan t2 = TimeSpan.Parse(grid_horas.Rows[i].Cells[7].Value.ToString());
}
Assuming the
.Valueis a timespan, then it should just work as: