Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Globally available dataset

$
0
0
Hi,

I have imported some Excel data. I want to keep the original data, but also have a copy that I sorted by multiple columns. My plan was to :-

Import the data into table 0
Create a dataview and sort it
Write that data into table 1

So - firstly is this the best method to achieve what I need? And if so - I am using the code below to create the dataview.

                //Create dataview
                DataView dataView = new DataView(DtSet.Tables[0]);
                dataView.Sort = "Number ASC, Serial ASC, Open Date ASC";



Could someone explain the syntax to write that to a new table to go in set/location DtSet.Tables[1].

Thanks!

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>