如何将已检查的复选框行从gridview导出到c#中的excel [英] How to export the checked checkbox rows from gridview to excel in c#

查看:84
本文介绍了如何将已检查的复选框行从gridview导出到c#中的excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai朋友,





我正在使用gridview.I在gridview中有一个复选框控件。如果我选​​中一个复选框控件然后点击导出到excel按钮选中的行将导出到excel。我该怎么做.Plz帮助我。





谢谢提前

Hai friends,


I am using gridview.I have a checkbox control inside gridview.If I check a check box control and click on export to excel button checked row will be exported to excel.How can i do this.Plz help me.


Thanks in advance

推荐答案

尝试 http://coastalcoder.wordpress.com/2012/11/07/export-datagridview-to-csv-file-with-c/ [ ^ ]。



在运行循环时,选中复选框值并适当地输出值是否为。
Try http://coastalcoder.wordpress.com/2012/11/07/export-datagridview-to-csv-file-with-c/[^].

While running the loop, pick up the check box value and export yes/no for the values appropriately.


为此您需要检查每一行如果为真,则手动将值插入Excel工作簿。
For this you have to check through each row that if it is true then insert the value manually to the excel workbook.


这篇关于如何将已检查的复选框行从gridview导出到c#中的excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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