我如何...使用复选框检查gridView导出逐行导出 [英] How do I...gridView Export using check box check to export row by bow

查看:68
本文介绍了我如何...使用复选框检查gridView导出逐行导出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

function validateUserInput2()
        {        
           
            alert("inside function"); //executing
            var myGrid = document.getElementById("<%= DataGrid1.ClientID %>");
            
            var rowcount = myGrid.rows.length;
      
          //  var cell;
          //  var j=0;
            alert("at grid before itereation"); //executing
            for (var i = 0; i < rowcount; i++) 
            {
                alert("grid iteration"); //executing
                        
       if(myGrid.rows[i].cells(0).type = "checkbox") //not entering this condition
                {
                    alert(" checkbox"); //not executing
                    if(mygrid.rows[i].cell[0].childNodes[0]==true)
                    {
                        break;
                        alert("checkbox check"); //not executing
                    }
                }
             }
         }

推荐答案

这些链接可能对您有帮助 -

导出选中(选中)GridView Rows到ASP.Net中的PDF [ ^ ]

导出所选的GridView ASP.Net中的Excel文件行 [ ^ ]
These links might help you -
Export selected (checked) GridView Rows to PDF in ASP.Net[^]
Export selected GridView Rows to Excel file in ASP.Net[^]


这篇关于我如何...使用复选框检查gridView导出逐行导出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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