Datatable -filter records with linq based on some internal index -


i have datatable plenty of records. , have range lowerrange = 10 , upperrange = 200. i want pull records starting @ row 10 till row 200.

now i don't want add new index based column datatable. there way of linq, can pull set of rows based on internal datatable index? guess, datatable must maintaining row index implicitly.

please suggest.

well, can use:

var records = table.asenumerable().skip(10).take(191); 

that use "natural" order of datatable. you'll need make sure datatable being populated in useful order though.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -