Gridview with multiple columns of checkboxes selection in javascript
<p>I am using a Gridview with checkboxes in my application.
Here is the format:
<img src="http://i.stack.imgur.com/QK95k.png" alt="enter image description here"></p>

<p>In the gridview if header checkbox is checked then all subsequent chekboxes under that should also be checked or unchecked as the case of header chekbox.</p>

<p>for this I am using java script function as.</p>

<pre><code>  function SelectAllFirstRow(ChK, cellno) 
{

         var gv = document.getElementById("ggvPage");
            for (var i = 1; i &lt;= gv.rows.length - 1; i++) {
                var chk1 = gv.rows(i).cells(cellno).firstChild;
                chk1.checked = ChK.checked;
            }
 }
</code></pre>

<p>Here :
<strong>ggvPage</strong> is the Gridview.
<strong>Chk</strong> is the header Checkbox and cellno is like 1 for view,2 for Add and.........</p>

<p>It's working fine in IE but not in Firefox and chrome.</p>

<p>Please suggest some solution for fulfilling my need.</p>

<p>Waiting for valuable solutions,</p>

<p>Thanks a lot,
Supriya</p>
