Hello
I want Hide Column Of GridView According To condition and show again that column
Suppose Their are 10 column and I want show only 5 then only 5 are shown
Hello
I want Hide Column Of GridView According To condition and show again that column
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Chandrakant PatilPosted Aug 21, 2015, 5:58 AM
Vaikesh K PPosted Aug 21, 2015, 5:37 AM
Sumit JoshiPosted Aug 21, 2015, 5:12 AM
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>
If you want to hide Column (say column no. 1) then the following code will work like a breeze [<:o)]
If helpful mark as Correct Answer