C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

How to retrieve the third table value from the data set?


Posted Date: 25 Jul 2008      Posted By: pedarayudu.k      Member Level: Silver     Points: 1   Responses: 3



How to retrieve the third table value from the data set?




Responses

Author: suman    25 Jul 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 0

ds.Tables[2]


Author: muralidhar    25 Jul 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 4

yes as suman said you can use the third table of dataset

there is another way if you know the exact table name

ds.Tables["Table3"]

if you want to itirate through all the rows you can get them also like

int i;
for (i = 0; i<ds.Tables["Table3"].Rows - 1; i++)
{
//do what ever you want.
}

Regards,
Muralidhar.

Regards,
Muralidhar.



Author: Lakshmankumar M    25 Jul 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 3

ds.Tables["Table3"]

if you want to itirate through all the rows you can get them also like

int i;
for (i = 0; i<ds.Tables["Table3"].Rows - 1; i++)
{
//do what ever you want.
}



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : What are the attirbutes of DataSet?
Previous : SSRS ADhoc Reports
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use