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

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...