i have created a dynamic table and i fill the table by using dataAdapter now i want do some paging like next ,previous ,last, first with limited rows to be display for exp i first view i want to display 10 rows when user click the next button then i want to show more 10 rows.exactly the same which is shown in picture below does any body have any idea how to do this.
Dyanamic Table paging
Hi
i have created a dynamic table and i fill the table by using dataAdapter now i want do some paging like next ,previous ,last, first with limited rows to be display for exp i first view i want to display 10 rows when user click the next button then i want to show more 10 rows.exactly the same which is shown in picture below does any body have any idea how to do this.

i have created a dynamic table and i fill the table by using dataAdapter now i want do some paging like next ,previous ,last, first with limited rows to be display for exp i first view i want to display 10 rows when user click the next button then i want to show more 10 rows.exactly the same which is shown in picture below does any body have any idea how to do this.
Amit ChoudharyPosted May 1, 2010, 6:57 AM
you can use any server control..that can be pageable. if you choose gridview to show your data then.. set allowpaging="true" set PageSize="10"
then add event Handlers for OnPageIndexChanging and OnPageIndexChanged
in changing add new index by
Gridview1.Pageindex=e.newIndex;
and in OnPageIndexChanged... a
Rebind the gridview.