how to add different time present in a column of a gridview and show the sum in footer textbox
<p>i have some values (08:12,09:22,01:09) in a column(datetime) in a gridview<br>
what i want is to get the sum of all values present in that column in a textbox which is present in the footer of that column.</p>

<p>i tried the below code - </p>

<pre><code>    int hours, minutes;
    TextBox footxt = (TextBox)GridView2.FooterRow.FindControl("footxt1");
    foreach (GridViewRow row in GridView2.Rows)
    {
        TextBox txts = (TextBox)row.FindControl("text11");

        TimeSpan ts = TimeSpan.Parse(txts.Text);
        hours = ts.Hours;
         minutes = ts.Minutes;
        hours += hours;
        minutes += minutes;
     footxt.Text = Convert.ToString(hours);
     }
</code></pre>

<p>but it doesnt work!</p>
