首页 > 代码库 > js循环GridView判断CheckBox是否全部未选中

js循环GridView判断CheckBox是否全部未选中

  function isQueryPriceReplyProduct() {            

       var gridItem;            

     var itemIndex = 0;            

         var IDS = ‘‘;            

     while (gridItem = dgQueryPriceReplyProduct.Table.GetRow(itemIndex)) {                

         itemIndex++;

                  if (!gridItem.Cells[0].Value) {                    

          continue;               

                      }

                  IDS += gridItem.Cells[1].Value + ‘,‘            

       }

              if (new String(IDS).length == 0) {                

        messageTips("请选择至少一行数据", ‘e‘);                

        return false;            

          }            

               return true;        

  }