views:

81

answers:

3

Hello,

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

<SettingsPager PageSize="5"> 

... doesnt work

thanks for help

+1  A: 

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

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

 </asp:GridView>  
anishmarokey
A: 

It works for me only when I set it programmaticaly in codeBehind on PageLoad.

gruber
I recommend contacting the DevExpress support team:http://www.devexpress.com/Support/Center/CreateIssue.aspx?issuetype=Question
Mehul
A: 

Hi,

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 SettingaPager.PageSize within the Page_LoadComplete method.

DevExpress Team