Этот код форматирует одну таблицу в правильный формат, а затем запускает .DataTable();
в исправленной отформатированной таблице.
Чтобы использовать это, замените идентификатор вашей таблицы в '# gdVscQuote'
Если страница, на которой вы работаете, содержит более одной таблицы, это не будет работать, не будет проверено.
$(document).ready( function () {
//replace tr
$($('#gdVscQuote')[0].childNodes[1].childNodes[0]).wrap('<thead/>').contents().unwrap();
//replace all td with th inside thead
$('thead td').wrap('<th/>').contents().unwrap();
//get thead
var thead = $("thead").get(0);
//remove saved thead to replace above tbody thead
$("thead").remove();
//add thead correctly
$('#gdVscQuote')[0].prepend(thead);
// replace tds for tr
$($('thead')[0].childNodes).wrapAll("<tr/>")
//add jQuery table functionality
$('#gdVscQuote').DataTable();
});