Friends, I’ve one question to ask. Which one is the correct syntax in jquery to get the last row of a gridview or is there any difference in the following codes:–
var rowCount = $('#GridView1 tr').length;
or
var rowCount = $("#<%=GridView1.ClientID %> tr:last");
Please help me to resolve the problem.Thanks in advance.
Yes you can access to global variable. First is correct and most preferable.