title: How to get a sum of column of GridView using JavaScript
body: <p>I'm trying to access to the column named Time of a gridview and calculate Sum of whole column using JavaScript.</p>
  
  <p>I have something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/MvPt2.jpg" alt="enter image description here"></p>
  
  <p>So in Report total I want to get number 5, since it is only entry right now.</p>
  
  <p>This is a definition of a gridview:</p>
  
  <pre><code>&lt;div class="total"&gt;
  
      &lt;asp:GridView ID="ReportGrid" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDS" Height="68px" Width="813px" AllowPaging="True"&gt;
          &lt;Columns&gt;
              &lt;asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" DataFormatString="{0:MM/dd/yy}" /&gt;
              &lt;asp:BoundField DataField="Name" HeaderText="Team Member Name" SortExpression="Name" /&gt;
              &lt;asp:BoundField DataField="ProjectName" HeaderText="Projects" SortExpression="ProjectName" /&gt;
              &lt;asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" /&gt;
              &lt;asp:BoundField DataField="Time" HeaderText="Time" SortExpression="Time" /&gt;
          &lt;/Columns&gt;
      &lt;/asp:GridView&gt;
      &lt;br /&gt;
      &lt;br /&gt;
      &lt;span&gt;Report total: &lt;em&gt;
          &lt;asp:Label runat="server" ID="totalHours" Text="0"&gt;&lt;/asp:Label&gt;&lt;/em&gt;&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Can anyone help me with javaScript code for this problem or share with me some related links, cause all I've found on the internet wasn't similar to this, and I guess this is simple thing to do when you know how to use JS.</p>
  
  <p>NaN value for sum during debugging:</p>
  
  <p><img src="https://i.stack.imgur.com/2qqOH.jpg" alt="enter image description here"></p>