DataTable row grouping. Getting the Microsoft JScript runtime error
<p>I am trying to add the datatable row grouping where the .rowGrouping takes the first column and group the row accordingly. Here is my code so far:</p>

<pre><code>$(document).ready(function () {

var oResultGrid = $("[id$='gvReportData']");

if (fixEmptyDataRow(oResultGrid)) {
var oTable = oResultGrid.dataTable({
"bPaginate": false,
"bFilter": false,
"bInfo": false
}).rowGrouping();

}
else {
oResultGrid.dataTable({
"sPaginationType": "full_numbers",
"aaSorting": [[1, 'asc']]
}).rowGrouping();
</code></pre>

<p>When I run the code, I keep getting this error. Any help is greatly appreciated. Thanks.</p>

<p>0x800a01b6 - Microsoft JScript runtime error: Object doesn't support this property or method </p>
