title: Datatables, how to bind event on all rows of the table
body: <p>My datatable is working fine except the fact that i am trying to add a <code>dblclick</code> functionality on each row, which that works partially. </p>
  
  <p>So, this is my code: </p>
  
  <pre><code>oTable = $('#example').dataTable({
      "aaSorting": [[ 1, "desc" ]],
      "bJQueryUI": true,
      "sPaginationType": "full_numbers"
  });
  
  /* Add a click handler to the rows */
  
  //This highlights the row selected
  $("#example tbody").click(function(event) {
          $(oTable.fnSettings().aoData).each(function (){
                  $(this.nTr).removeClass('row_selected');
          });
          $(event.target.parentNode).addClass('row_selected');
  });
  
  //this attaches a dblclick event on the row
  $("#example tr").dblclick(function() {
          var iPos = oTable.fnGetPosition( this );
          var aData = oTable.fnGetData( iPos );
          var iId = aData[1];
          $('#edit'+iId).click(); //clicks a button on the first cell
  });
  </code></pre>
  
  <p>The highlighting of rows is ok for all rows of the tables, but the <code>dblclick</code> is working ONLY for the rows that where initially rendered in the first page. When I sort/search data and the data displayed change, the <code>dblclick</code> event does not work for those rows that where not displayed in the first page.</p>
  
  <p>Can anyone help to solve this mystery?
  Thanks</p>