Hi,
I am using a RadGrid. There is a griddatetimecolumn TotalTime represting time from sqlserver database. I have to generate a new column in the grid at run time by subtracting time in last column - 2nd last column.
Example:
S.NO. Total_Time DrivingTime
(HH:MM) (HH:MM)
1 01:00 01:00
2 01:35 00:35
3 02:00 00:25
Now I have Total_time from DB, and want DrivingTime to be generated at runtime by doing simple calculations on Total_Time column.i.e. Just subtracting current row total_time with previous row total_time (if exist) e.g. RowNo.3 DrivingTime= (02:00 - 01:35) = (00:25).
I am using C#
Any help will be highly appreciated.
Cheers, Ali
I am using a RadGrid. There is a griddatetimecolumn TotalTime represting time from sqlserver database. I have to generate a new column in the grid at run time by subtracting time in last column - 2nd last column.
Example:
S.NO. Total_Time DrivingTime
(HH:MM) (HH:MM)
1 01:00 01:00
2 01:35 00:35
3 02:00 00:25
Now I have Total_time from DB, and want DrivingTime to be generated at runtime by doing simple calculations on Total_Time column.i.e. Just subtracting current row total_time with previous row total_time (if exist) e.g. RowNo.3 DrivingTime= (02:00 - 01:35) = (00:25).
I am using C#
Any help will be highly appreciated.
Cheers, Ali