Hi YacharuP,
Add the below line of code at the end of the section in the page for update panel refresh to work.
<script type="text/javascript">
//On UpdatePanel Refresh
var prm = Sys.WebForms.PageRequestManager.getInstance();
if (prm != null) {
prm.add_endRequest(function (sender, e) {
if (sender._postBackSettings.panelsToUpdate != null) {
$('[id$=grd_dist_master]').prepend($("<thead></thead>").append($('[id$=grd_dist_master]').find("tr:first"))).DataTable({
"responsive": true,
"sPaginationType": "full_numbers"
});
}
});
};
</script>
For more details refer the below article.