ASPxGridView rows per page

gruber picture gruber · Sep 8, 2010 · Viewed 42k times · Source

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

<SettingsPager PageSize="5"> 

... doesnt work

thanks for help

Answer

anishMarokey picture anishMarokey · Sep 8, 2010

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

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

 </asp:GridView>