PDA

Click to See Complete Forum and Search --> : Datagrid and Paging


gollnick
Mar 26th, 2004, 07:54 PM
In a datagrid .... I want a set height (200px) but allow up to 200 rows in the grid. Using the properties -->> Allow Paging , Page Size , Position =Top and Mode PageNumbers. At run time after I load the grid , in this case with 62 rows, my header shows this
1 2 3 4 5 6 7 and the first page is presented. How do I get the next 10 when user clicks 2 or 40-50 when they click 4???

gollnick


__________________

alex_read
Mar 28th, 2004, 04:58 PM
There is a great example of how you can acheive this effect located at the following page: http://samples.gotdotnet.com/quickstart/aspplus/samples/webforms/ctrlref/webctrl/datagrid/doc_datagrid.aspx#paging

Split
Mar 29th, 2004, 03:58 PM
Another very good link, I used when I needed to created paging first time:

http://www.dotnetjunkies.com/Tutorial/EA868776-D71E-448A-BC23-B64B871F967F.dcik

The main thing is to create a very slick stored procedure with total records as ouput parameter