How do I count the number of rows in a table?
The table is in a dataset.
I fill the table just before counting the rows.
I know (because this is test data) that the table should contain one row.
I keep getting 0 as the value.
Here are my failed attempts to count the table's rows:
myCount = ds.Tables.Item(0).Rows.Count
myCount = ds.Tables("salesAgents").Rows.Count
The table is in a dataset.
I fill the table just before counting the rows.
I know (because this is test data) that the table should contain one row.
I keep getting 0 as the value.
Here are my failed attempts to count the table's rows:
myCount = ds.Tables.Item(0).Rows.Count
myCount = ds.Tables("salesAgents").Rows.Count