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(); }
private void loadData() { Csv.ReadToDataTable(simulateDt, "EUR2USD.csv"); simulateDt.DefaultView.Sort = "DateTime ASC"; simulateDt = simulateDt.DefaultView.ToTable(); }