I assume you have included the
jQuery file in your
aspx
page.
If you have not, then add the reference.
Now, try with the below code.
$('#<%=dvGrid.ClientID %>').on("scroll", function (e) {
var $o = $(e.currentTarget);
if ($o[0].scrollHeight - $o.scrollTop() <= $o.outerHeight()) {
GetRecords();
}
});