Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Viewing Data from a DataSet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
glenn - 21 Mar 2006 21:29 GMT
Hello,

I have a DataSet that was returned to me by a QueryMethod( ).

I have drilled down to the column level as follows:

               Dim ds As System.Data.DataSet
               Dim dt As System.Data.DataTable
               Dim dr As System.Data.DataRow
               Dim dc As System.Data.DataColumn

               ds = QueryMethod ( )

               For Each dt In  ds.Tables
                   For Each dr In  dt.Rows
                      For Each dc In  dt.Columns
                           if dr(dc) = "owner" then
                               ' GET THE DATA IN THE COLUMN OF A ROW OF A
TABLE
                            end if
                      Next dc
                   Next dr
               Next dt

Am I using the right approach.  Thanks for any replies.
Kevin Spencer - 21 Mar 2006 22:13 GMT
Without a context, there is no "right approach." There are multiple
approaches because there are multiple circumstances.

Signature

HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

> Hello,
>
[quoted text clipped - 21 lines]
>
> Am I using the right approach.  Thanks for any replies.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.