Home All Groups Group Topic Archive Search About
Author
21 Apr 2006 3:17 PM
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

Author
21 Apr 2006 3:55 PM
Larry Lard
Jake Smythe wrote:
> 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

--
Larry Lard
Replies to group please