Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How do I get the name of the column out of a dataset

Reply
Thread Tools

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

 
 
Guest
Posts: n/a
 
      11-04-2008
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.


 
Reply With Quote
 
 
 
 
gerry
Guest
Posts: n/a
 
      11-04-2008
ds.Tables[0].Columns[0].Name

<tester> wrote in message news:%(E-Mail Removed)...
> 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.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Column name = "System" in dataset Chris Botha ASP .Net 5 09-11-2007 05:52 PM
Get column name, first record name Leszek ASP .Net 2 01-19-2005 09:43 AM
how to get a column name from a dataset =?Utf-8?B?QXNoYQ==?= ASP .Net 2 10-19-2004 01:37 PM
Re: Urgent! how to get object name, method name and attribute name based on the strings? ding feng C++ 2 06-25-2003 01:18 PM



Advertisments