Number of Rows in a DataSet Table
-
I have a DataSet that contains a table "results" which is popuated with data from a database. I need to know the number of rows in the "results" table. Is there a simple way to grab this information? A property or some such? Thanks.
-
I have a DataSet that contains a table "results" which is popuated with data from a database. I need to know the number of rows in the "results" table. Is there a simple way to grab this information? A property or some such? Thanks.
DataSet.Tables[0].rows.count :)
-
DataSet.Tables[0].rows.count :)
or DataSet.Tables[0].Rows.Count :) Jared Parsons jaredp@beanseed.org http://spaces.msn.com/members/jaredp/
-
DataSet.Tables[0].rows.count :)
Thanks!
-
or DataSet.Tables[0].Rows.Count :) Jared Parsons jaredp@beanseed.org http://spaces.msn.com/members/jaredp/
Wouldn't DataSet.Tables["tablename"].Rows.Count be more appropriate? Just in case that table is not #0 in the list?
-
Wouldn't DataSet.Tables["tablename"].Rows.Count be more appropriate? Just in case that table is not #0 in the list?
That would be better IMHO. I was more poking fun at casing Jared Parsons jaredp@beanseed.org http://spaces.msn.com/members/jaredp/