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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top