Does anyone know how to count the no of rows in asp:GridView using jQuery. If no rows found then I want to do stuff...
A GridView is just rendered as a standard HTML table, so just count the number of tr elements under the GridView:
GridView
tr
var totalRows = $("#<%=GridView1.ClientID %> tr").length;