Click here to Skip to main content
15,919,893 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to change datatable order in an existing dataset using asp.net c#. I am fetching data from DB and adding to a dataset. But the order of tables need to be changed as i need to write the same to a text file in the required order.

What I have tried:

I am fetching data from DB and adding to a dataset. But the order of tables need to be changed as i need to write the same to a text file in the required order.
Posted
Updated 25-Jan-17 21:32pm

1 solution

You can either:
1. Refer to individual datatables in the dataset by their index numbers or table names; or
2. copy the datatables to a new dataset in the order that you want.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900