ASP.NET GridView row count using Javascript

前端 未结 1 1711
温柔的废话
温柔的废话 2020-12-11 21:04

Having the GridView client control ID, I would like to get some ideas on how to count the GridView rows or at least be able to tell if there is at least one row on the Gridv

相关标签:
1条回答
  • 2020-12-11 21:36
    var rowscount = document.getElementByID('<%=Gridview1.ClientID%>').rows.length;
    
    alert(rowscount);
    
    0 讨论(0)
提交回复
热议问题