ASPxGridView rows per page

43,377

Solution 1

The problem might appear because you are loading ASPxGridView settings from cookies or any other storage where they were saved. Am I right? If so, you should either delete a cookie or set the SettingsPager.PageSize within the Page_LoadComplete method.

Solution 2

Set GridView.PageSize Property to "5" Try this:

<asp:GridView ID="GridView2" runat="server"  PageSize="5">

 </asp:GridView>  

Solution 3

<dx:ASPxGridView ...  SettingsPager-PageSize="20">

Solution 4

I set Number of rows per page to 50 but by Default its 10.

On client side use this

<asp:GridView ID="GridView1" runat="server">
    <SettingsPager PageSize="50">
    </SettingsPager>
 </asp:GridView> 

On server side use

SettingsPager.PageSize=50; 

Solution 5

Please check if you have any skin set for the grid view or any other user control attached to the grid view.I faced the same issue due to the custom export control bind to the grid view.

Share:
43,377
gruber
Author by

gruber

Updated on August 07, 2022

Comments

  • gruber
    gruber almost 2 years

    How can I set maximum number of rows per page to 5? Default is 10.

    <SettingsPager PageSize="5"> 
    

    ... doesnt work

    thanks for help

  • Mehul
    Mehul over 13 years
    I recommend contacting the DevExpress support team:devexpress.com/Support/Center/…