title: Get Gridview Cell Value using JavaScript
body: <p>I got a gridview with a checkbox column, which I'm able to determine whether a row is checked. My problem is that I can't get the cell value. I'm using javascript. I'm using JS since I have to make an ajax call once I get the cell value.  Thx in advance.  Here's my code:</p>
  
  <pre><code>    function newData(mode) {
  
          if (mode == 'edit') {
              var valid = false; 
              var gv = document.getElementById("myGridview"); 
  
              for (var i = 0; i &lt; gv.all.length; i++) { 
                  var node = gv.all[i]; 
                  if (node != null &amp;&amp; node.type == "checkbox" &amp;&amp; node.checked) { 
                      valid = true; 
                      break; 
                  } 
              } 
              if (!valid) { 
                  alert("Invalid. Please select a checkbox to continue."); 
              } 
  
              return valid; 
          }
  </code></pre>