Friday 26 December 2014

Select certain columns from a data table using c#

string[] selectedColumns = new[] { "Columns1"," Columns2"," Columns3" };

DataTable Dt = new DataView(ds.Tables["dt"]).ToTable(false, selectedColumns);

No comments:

Post a Comment

Excel Sort values in ascending order using function TEXTJOIN

 Excel ::  Text ::  1,3,5,2,9,5,11 Result :: 1,2,3,5,5,9,11 Formula ::     TEXTJOIN ( ",",1,SORT(MID(SUBSTITUTE( A1 ,","...