i want to use Linq's Iquerable that gives me the ' query that gets only the records needed to the page' based on the Page size i have given.
i have used this:
System.Linq.IQueryable<DataTable> ds =
(from m in dttableDetails.TableName select m).Take(page_size).Skip(offset);
but it is showing me error. i need the returned type as 'Datatable/Dataset'
how to do this... pls help
error as:
Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<char>' to 'System.Linq.IQueryable<System.Data.DataTable>'. An explicit conversion exists (are you missing a cast?)