使用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>
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>