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.
Could someone explain the syntax to write that to a new table to go in set/location DtSet.Tables[1].
Thanks!
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!