You must either set the Data Source using the function set_data_source($data_source) or the table_rows_count variable using the function set_total_records($total_number_of_records)