title: JQuery DataTables mRender - how do I get the row ID?
body: <p>With the JQuery DataTables plugin I am using mRender to add buttons to my dynamically added rows.  This part works great, but how can I get the rowID of the current row the buttons are added to? I need this to create unique IDs for the buttons.</p>
  
  <p>What do I need to use in place of ???? in the code below?</p>
  
  <p><strong>JavaScript:</strong></p>
  
  <pre><code>    $('#example').dataTable({
          "aoColumns": [
          { "sTitle": "Person", "mData": "Person" },
          {
              "sTitle": "Buttons", "mData": "Buttons", "mRender": function () {
                  var rowID = ?????;
                  btnD = '&lt;button id="btnDepth' + rowID + '" data-keyindex="' + rowID + '" data-type="Depth" data-action="Show" class="addDepthGraph" title="Show Depth"&gt;D&lt;/button&gt;';
                  btnG = '&lt;button id="btnGraph' + rowID + '" data-keyindex="' + rowID + '" data-type="Graph"  data-action="Show" class="addDepthGraph" title="Show Graph"&gt;G&lt;/button&gt;';
  
                  var returnButton = btnD + btnG;
                  return returnButton;
              }
          }
          ],
          "bPaginate": false
      });
  
      $("#addRowOptions").click(function () {
          rowindex = $('#example').dataTable().fnGetData().length;
          obj = [{Person:'PersonA', Buttons: ''}];
          $('#example').dataTable().fnAddData(obj);
      });
  </code></pre>