JS获取GridView的记录数

 var totalRows = $("#<%=GridView_SUB1.ClientID %> tr").length - 1;

原文地址:https://www.cnblogs.com/Chinarain/p/3821995.html