question on dataset

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jake Smythe

    #1

    question on dataset

    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


  • Larry Lard

    #2
    Re: question on dataset


    Jake Smythe wrote:[color=blue]
    > Hello,
    >
    > I was wondering if/how to do the following. I have a dataset[/color]

    A DataTable, I suppose you mean
    [color=blue]
    > 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[/color]

    'dt is a DataTable
    dt.Select("atte ntion=1").Lengt h

    Select returns an array of DataRow

    --
    Larry Lard
    Replies to group please

    Comment

    Working...