Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

know if a gridview is empty from javascript

var grid=(document.getElementById("<%=gvAssignedTickets.ClientID%>"))?document.getElementById("<%=gvAssignedTickets.ClientID%>"):null;
if (grid)
 {
  if (grid.rows.length>0)
   {
    ...
   }
 }
Source by social.msdn.microsoft.com #
 
PREVIOUS NEXT
Tagged: #gridview #empty #javascript
ADD COMMENT
Topic
Name
8+9 =