使用js隐藏GridView的表头(hide the table header of GridView by JS)

客户的提问:

hi friends

i need to hide gridview columns using javascript ....... how do i ???????????????????????

any help really appreciated

urgent


回答:

Hi Vinogays

just fire the following function:


<script language="JavaScript">
function hideColumn()
{
col_num 
= document.getElementById("column_numbder").value;
rows 
= document.getElementById("myGridView").rows;
for(i=0;i
   rows[i].cells[col_num].style.display
="none";
}

}
</script>
posted @ 2008-05-28 13:11  LanceZhang  阅读(1756)  评论(2编辑  收藏  举报