How do I get the name of the column out of a dataset

Discussion in 'ASP .Net' started by Guest, Nov 4, 2008.

  1. Guest

    Guest Guest

    ds.tables(0).rows(0).item(0).tostring gives me the value of the column in
    the first row, but I want the name of the column. How can I do that? Thank
    you for your help.
    Guest, Nov 4, 2008
    #1
    1. Advertising

  2. Guest

    gerry Guest

    ds.Tables[0].Columns[0].Name

    <tester> wrote in message news:%...
    > ds.tables(0).rows(0).item(0).tostring gives me the value of the column in
    > the first row, but I want the name of the column. How can I do that?
    > Thank you for your help.
    >
    gerry, Nov 4, 2008
    #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. =?Utf-8?B?QXNoYQ==?=

    how to get a column name from a dataset

    =?Utf-8?B?QXNoYQ==?=, Oct 19, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    12,755
    Eliyahu Goldin
    Oct 19, 2004
  2. Leszek

    Get column name, first record name

    Leszek, Jan 19, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    430
    Leszek
    Jan 19, 2005
  3. ding feng
    Replies:
    2
    Views:
    2,804
    ding feng
    Jun 25, 2003
  4. Chris Botha

    Column name = "System" in dataset

    Chris Botha, Sep 11, 2007, in forum: ASP .Net
    Replies:
    5
    Views:
    462
    Mark Rae [MVP]
    Sep 11, 2007
  5. Tim Chase
    Replies:
    7
    Views:
    293
    Dennis Lee Bieber
    Jul 20, 2012
Loading...

Share This Page