How to get the total number of rows in a Dataset?

Discussion in 'ASP .Net' started by =?Utf-8?B?ZGF2aWQ=?=, May 3, 2005.

  1. For example, I have a dataset, ds.
    I would like to the total number of rows in the ds, i.e., the length of
    ds.Tables(0).

    Thanks

    David
    =?Utf-8?B?ZGF2aWQ=?=, May 3, 2005
    #1
    1. Advertising

  2. ds.Tables(0).Rows.Count
    --

    Thanks,
    Yunus Emre ALPÖZEN
    BSc, MCAD.NET

    "david" <> wrote in message
    news:...
    > For example, I have a dataset, ds.
    > I would like to the total number of rows in the ds, i.e., the length of
    > ds.Tables(0).
    >
    > Thanks
    >
    > David
    Yunus Emre ALPÖZEN [MCAD.NET], May 3, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. thomson
    Replies:
    1
    Views:
    781
    Brock Allen
    Jun 11, 2005
  2. Praveen homkar via JavaKB.com

    how to get total number of rows contained in a resultset

    Praveen homkar via JavaKB.com, Aug 5, 2005, in forum: Java
    Replies:
    1
    Views:
    5,301
  3. yonialhadeff

    Group By Rows and Total Rows

    yonialhadeff, Jan 23, 2007, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    835
    Eliyahu Goldin
    Jan 23, 2007
  4. JoeM

    Get Total Rows in Database?

    JoeM, Feb 20, 2006, in forum: ASP General
    Replies:
    7
    Views:
    252
    Paxton
    Feb 20, 2006
  5. bhat
    Replies:
    0
    Views:
    133
Loading...

Share This Page