title: Child row datatables - row data value undefined
body: <p>I have a datatable with child rows populated by the following function:</p>
  
  <pre><code>$('#myDataTable tbody').on('click', 'td.details-control', function () {
              console.log(table.row(this).data());
              var tr = $(this).closest('tr');
              var row = table.row(tr);
  
              if (row.child.isShown())
              {
                  // This row is already open - close it
                  row.child.hide();
                  tr.removeClass('shown');
              }
              else {
                  // Open this row
                  row.child(format(row.data())).show();
                  tr.addClass('shown');
              }
          });
  </code></pre>
  
  <p>The format function:</p>
  
  <pre><code>function format(d) {
              // `d` is the original data object for the row
              return '&lt;table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;"&gt;' +
                  '&lt;tr&gt;'+
                  '&lt;td&gt;&lt;strong&gt;BLABLA1&lt;/td&gt;' +
                  '&lt;td align="center"&gt;'+
                      d.BLABLA1 +
                  '&lt;/td&gt;'+
  
                  '&lt;td&gt;&lt;strong&gt;BLABLA2&lt;/td&gt;' +
                  '&lt;td align="center"&gt;'+
                      d.BLABLA2+
                  '&lt;/td&gt;'+
              '&lt;/tr&gt;' +
              '&lt;/table&gt;';
          }
  </code></pre>
  
  <p>However, when I display the page, and I expand the child rows, the values of the columns are "undefined"...</p>
  
  <p>The rows in the datatable are populated from a model (Using MVC 4) as follows:</p>
  
  <pre><code>&lt;tbody&gt;
          @foreach (var item in Model)
          {
  
              &lt;tr&gt;
  
                  &lt;td align="center"&gt;
                      @Html.DisplayFor(modelItem =&gt; item.BLABLA3)
                  &lt;/td&gt;
      .....&lt;/tr&gt;}
      &lt;/tbody&gt;
  </code></pre>
  
  <p>I think I am missing the method to get the row.data() loaded into the formatting function.... What is the correct way of doing so? I already checked all the documentations and they all use what I tried....</p>