Tuesday 24 April 2018

Filter datatable row with condition using c#

//////////////////////////

//////////////for like conditon


            DataTable checkCluster = Tally_COSTCENTREALLOCATIONS_LIST.Select("Name LIKE 'AP-KMR%'").CopyToDataTable(); //dv4.ToTable();

//////////////for Data  greater than and less than condition

 DataTable checkdate = Tally_VOUCHER.Select("DATE >= '20170401' and DATE <= '20180331'").CopyToDataTable();


//////////////for the date between condition

 DataTable checkdate = Tally_VOUCHER.Select("DATE between '20170401' and  '20180331'").CopyToDataTable();

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 ,","...