如何使用javascript做网格视图列和页脚的visible = false? [英] how to do visible=false of a grid view columns and footer using javascript?

查看:83
本文介绍了如何使用javascript做网格视图列和页脚的visible = false?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,



我有一个网格视图我试图用javascript打印网格视图,

但网格包含页脚roe和image在第一列。我想在打印时隐藏图像和页脚行。任何人都可以帮我解决这个问题



可能java脚本是

Hi experts,

I have one grid view am trying to print that grid view using javascript,
but the grid contains footer roe and image's in the first column. i want to hide the images and footer row while printing . can any one please help me to solve this issue

may java script is

<script type="text/javascript">
        function PrintPanel() {
        
            var panel = document.getElementById("<%=pnlBody.ClientID %>");
            var printWindow = window.open('', '', 'height=400,width=800');
            printWindow.document.write('<html><head><title></title>');
            printWindow.document.write('</head><body >');
            printWindow.document.write(panel.innerHTML);
            printWindow.document.write('</body></html>');
            printWindow.document.close();
            setTimeout(function () {
                printWindow.print();
            }, 500);
            return false;
        }
    </script>







...和网格视图是









提前感谢

(Keerthi Kumar)




...and the grid view is




thanks in advance
(Keerthi Kumar)

推荐答案

这可能有所帮助:添加&使用JavaScript删除打印预览中的GridView列 [ ^ ]
This may help: Adding & Removing GridView columns in the Print Preview using JavaScript [^]


这篇关于如何使用javascript做网格视图列和页脚的visible = false?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆