one question

Discussion in 'ASP .Net Datagrid Control' started by Elton W, May 6, 2005.

  1. Elton W

    Elton W Guest

    Hi Chris,

    Following code snippet shows how to get column header in
    DataSet (actually DataTable):

    foreach (DataColumn col in ds.Tables[0].Columns)
    {
    string header = col.ColumnName;
    }

    HTH

    Elton Wang


    >-----Original Message-----
    >hi everyone
    >
    >i dont noe where to post this msg... i guess i just post

    it here
    >
    >i have a problem here.. i am using dataset to store

    information from a
    >table in the database.. then out put the result and sace

    it into a note pad
    >..txt file.. i can get the fields all out but i have a

    problem.. i cant get
    >the column header.. can i know to do do it??
    >
    >chris
    >
    >--
    >Message posted via http://www.dotnetmonster.com
    >.
    >
     
    Elton W, May 6, 2005
    #1
    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. Dan Davenport via .NET 247

    Bind optional one-to-one relationship to textbox

    Dan Davenport via .NET 247, Aug 4, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    655
    Dan Davenport via .NET 247
    Aug 4, 2004
  2. MACEI'S
    Replies:
    0
    Views:
    1,385
    MACEI'S
    Jul 10, 2003
  3. news.frontiernet.net
    Replies:
    6
    Views:
    1,163
    news.frontiernet.net
    Apr 16, 2004
  4. loveNUNO
    Replies:
    2
    Views:
    964
    loveNUNO
    Nov 20, 2003
  5. Merciadri Luca
    Replies:
    4
    Views:
    851
Loading...

Share This Page