|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
question on datasetHello,
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 Smythe wrote:
> Hello, A DataTable, I suppose you mean> > 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. 'dt is a DataTable> 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.Select("attention=1").Length Select returns an array of DataRow -- Larry Lard Replies to group please |
|||||||||||||||||||||||