row count in datarow[] array

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I determine the row count of my datarow array? In my code, I have

DataRow[] drSalLast =
Salaries.DS_Salaries.Tables["Salaries"].Select("Emplcode = '" + sEmplcode +
"' and code = '3'");

and since this query returns more than one row, I'd like to diaplay the
Salaries.Hourly of every record.



Thanks.
 
If you are looking to find out how many rows are in the array, do the
following:

drSalLast.Length


Simon
 
Back
Top