string[] ColumnsToKeep = { "Column1", "Column2", "Column3" }; DataTable1.DefaultView.Sort = "Column1 DESC"; Data.DataTable DataTable2 = DataTable1.DefaultView.ToTable(false, ColumnsToKeep);
No comments:
Post a Comment