I know there's the RowFilter
option to filter according to column value. Also there are methods to choose the top N rows. But how do I filter out and get rows from (I prefer getting it to the same DataView
dv), say, position 10 to position 23?
Here's my requirement. I have a DataView
dv which has 100 rows. I have a listbox with 10 items. When I choose first item in the listbox, I want first 10 rows of the dataview to be loaded (loading part is in my program, leave it to me), if I choose 2nd item in listbox then I want row11 to row20 to be loaded and so on. I can do the listbox part, but how to choose dataview values based on row number?
This is how my code looks:
DataSet ds = new DataSet();
DataTable dt = ds.Tables["words"];
DataView dv = new DataView(dt);
Now how to have a dataview from dv based on row position?
Thanks.