 <p>In HTML GridView render as table , better you can use Jquery to add the values ,</p> <pre><code>var total=0; $('#gridview1').find('tr td').each(function(i, td){ var data= parseInt( $(td).val()); total+=data; }); </code></pre>