I have problem with getting a count of the number of rows in a data table, the Data Table is created from a Data Scraping.
Even if the Data Table is empty (I checked it for sure by export to csv file), DataTable.Rows.Count.ToString shows 1 row.
Also if Data Table has one row, counter still shows 1.
I tried with indexes, DataTable.Rows.IndexOf(row).ToString, with empty list Index = 0, with one row Index = 0, with two rows there are three indexes 0, 1 and 2.
Is there another way to count DataTable rows ? (I would like to avoid the solution of writing to csv file and then counting number of rows from it )