YacharuP says:
<
script
type
=
"text/javascript"
>
$(function () {
$('[id*=grd_dist_master]').prepend($("<
thead
></
thead
>").append($(this).find("tr:first"))).DataTable({
"responsive": true,
"sPaginationType": "full_numbers"
});
});
</
script
>
Change the above with the below.
<script type="text/javascript">
$(function () {
$('[id$=grd_dist_master]').prepend($("<thead></thead>").append($(this).find("tr:first"))).DataTable({
"responsive": true,
"sPaginationType": "full_numbers"
});
});
</script>
As you are using master page find id that ends with grd_dist_master.