question on dataset

  • Thread starter Thread starter Jake Smythe
  • Start date Start date
J

Jake Smythe

Hello,

I was wondering if/how to do the following. I have a dataset with a column
names attention. It has either a 1 or 0 as a value. How can I get the count
of rows that have a vaue of 1 from the dataset? Any samples/links would be
appreciated. Thanks

Jake
 
Jake said:
Hello,

I was wondering if/how to do the following. I have a dataset

A DataTable, I suppose you mean
with a column names attention. It has either a 1 or 0 as a value.
How can I get the count
of rows that have a vaue of 1 from the dataset? Any samples/links would be
appreciated. Thanks

'dt is a DataTable
dt.Select("attention=1").Length

Select returns an array of DataRow
 
Back
Top