Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASPxGridView rows per page

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

<SettingsPager PageSize="5"> 

... doesnt work

thanks for help

like image 473
gruber Avatar asked Sep 08 '10 09:09

gruber


People also ask

What is the default page size of grid view?

The default is 10.

Which property of a gridview changes how many items are shown on each page?

PageSize is the property that can be used to set the number of records per page.


2 Answers

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

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

 </asp:GridView>  
like image 138
anishMarokey Avatar answered Oct 08 '22 20:10

anishMarokey


<dx:ASPxGridView ...  SettingsPager-PageSize="20">
like image 34
Ahmet Avatar answered Oct 08 '22 20:10

Ahmet