示例#1
0
        private void loadDataTable()
        {
            Csv.ReadToDataTable(shareTable, "EUR2USD.csv");
            var query = shareTable.AsEnumerable().OrderBy(r => r["DateTime"]);

            shareTable = query.CopyToDataTable();

            //  shareTable.DefaultView.Sort = "DateTime ASC";
            // shareTable = shareTable.DefaultView.ToTable();
        }
示例#2
0
 private void loadData()
 {
     Csv.ReadToDataTable(simulateDt, "EUR2USD.csv");
     simulateDt.DefaultView.Sort = "DateTime ASC";
     simulateDt = simulateDt.DefaultView.ToTable();
 }