Posted on: 2/5/2014 10:09:33 AM | Views : 500

Hello,
I have a datatable,
Im trying to filter the datatable by date, Im currently referencing the columns with a variable called 
SearchText.FromDateName <-- this is database driven, so it could be "From Date" or "App Registered" which represents a column name in the datatable.
I then pass in a date within Filters.FromDate and I want to find all records that are greater or equal to that within the datatable.
var newset = from x in Results.AsEnumerable() where (Filters.PolicySearch == null || x.Field<string>(SearchText.PolicyReferenceName).ToLower().Contains(Filters.PolicySearch.ToLower())) // Search policy reference && ((Filters.RegisteredAppSearch == null || x.Field<int>(SearchText.RegisteredA ...

Go to the complete details ...