I have a datatable that is created with Ajax. However, I do not want all the fields to be displayed and thus I set bVisible to false on the not-so-important field.
get current tr data using following code(also returns hidden columns value perfectly):
$('#example-table-id').dataTable().fnGetData($('currenttr'));
it returns an array and you can access to td values like follow:
$('#example-table-id').on('click', 'tbody tr', function(){
var arr=$('#example-table-id').dataTable().fnGetData($(this));
var Id=arr[0]; //returns first td value
var Name=arr[1];//returns second td value
}