Friday, November 11, 2022

How to apply LINQ to datatable in ASP.NET C#

  DataTable dt2 = ApplyFiltersWithSorting(dt, sort, "");

            

            GridView1.DataSource = dt2.AsEnumerable().Where(r => r.Field<string>("PresentInstitutePostingDate") == "").CopyToDataTable();




reference:- https://stackoverflow.com/questions/19449449/how-i-can-filter-a-datatable-with-linq-to-datatable

No comments:

Post a Comment