I have a datagridview which is filled based on a calculation sum of another datagridview.
In my DGview I have 4 columns, a number (i++), the person’s name, the hours, the minutes. Person’s name is a group-by, hours is the sum of all hours of DGview1, minutes is the sum of all minutes from DGview1.
But it may occur that the sum of minutes results in e.g. 214. Is it possible to recalculate this into 2 other column where the sum of hours is added PLUS (214minutes) 3hours and then in another column the rest of minutes : 34?
Or even better recalculated/replaced into the original columns of DGview2, so without adding 2 more columns?
Use the TimeSpan Structure to either calculate the sum all along, or use the TimeSpan.FromMinutes() method to create it from the minutes total.