﻿jQuery.fn.fixGridView = function() {
    if (jQuery(this).is('table') && this.find('thead').length == 0) {
        // No 'thead' section
        this.prepend("<thead></thead>"); // add thead
        this.find('tbody tr:first').remove().appendTo( this.find('thead') ); 
        // remove first row from tbody, add it to thead
    }
    return this;
}; 
