I have a datable that includes riders , both male and female, their total miles ridden for the ear, and the number of rides. I need to create 4 dataviews that ret top 10 mileage leaders and top ten number of rides for each gender. In a previous version I
simply filtered on gender and order by distance as a dataview then used them for the data source for a gridview that I set paging at ten rows and then hid the <> buttons. that worked but I now have to bind the data to a listview, which doesn't have paging.
Member
120 Points
574 Posts
select 4 ordereddataviews from a datatble
Jan 01, 2015 11:41 PM|dieseldave|LINK
I have a datable that includes riders , both male and female, their total miles ridden for the ear, and the number of rides. I need to create 4 dataviews that ret top 10 mileage leaders and top ten number of rides for each gender. In a previous version I simply filtered on gender and order by distance as a dataview then used them for the data source for a gridview that I set paging at ten rows and then hid the <> buttons. that worked but I now have to bind the data to a listview, which doesn't have paging.
Star
9021 Points
2415 Posts
Re: select 4 ordereddataviews from a datatble
Jan 02, 2015 12:58 AM|Lokesh B R|LINK
Hi,
You can use DataPager with Listview for Paging.
Check the following links.
http://www.aspsnippets.com/Articles/Implement-Paging-in-ASPNet-ListView-control-using-DataPager-without-using-DataSource-control.aspx
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.datapager.pagedcontrolid(v=vs.110).aspx