HI gumuk,
try this javascript:
---------------------------------------------
<script type="text/javascript">
window.onload=function()
{
var tabl=document.getElementById("gridviewID");
alert(tabl.rows[0].childNodes.length);
// or alert(tabl.rows[0].cells.length);
}
</script>
-----------------------------------------
Happy Coding.