datatables filter code example
Example 1: datatables filter with math functions
Javascript12345678var table = $('#example').DataTable(); var filteredData = table .column( 0 ) .data() .filter( function ( value, index ) { return value > 20 ? true : false; } );
Example 2: how to filter a datatable in c#
DataView dv = new DataView(yourDatatable);
dv.RowFilter = "query"; // query example = "id = 10"