C# datatable rows count to integer code example Example: datatable count number of rows var table = $('#example').DataTable(); table.rows().count();