仅打印gridview选定的行 [英] print gridview selected rows only

查看:65
本文介绍了仅打印gridview选定的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有带有复选框列的asp.net gridview

我想在同一页面上配置打印按钮,只使用javascript打印选中的行



谢谢。

I have asp.net gridview with checkbox column
I'd like to configure the print button on the same page to print only the checked rows
using javascript.
Thank you.

推荐答案

使用jquery选择所有选中的行

然后向<行添加行; DIV>在同一个jquery函数中

然后添加< div> to Document.Open()

你将得到一个包含已检查行的pop。

然后打印此窗口document.Print()

或你也可以使用这个逻辑直接打印这些行
Select All the checked rows by using jquery
then add rows to the <div> in the same jquery function
then Add the <div> to Document.Open()
you will get a pop containing the checked rows
then print this window document.Print()
or you can also use this logic to directly print these rows


这篇关于仅打印gridview选定的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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