Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Datagrid dynamic PageSize

0 views
Skip to first unread message

Pasha

unread,
Apr 21, 2003, 4:54:49 PM4/21/03
to
Hi I am using a dropdownlist box to give the User the choice of setting the
page size
but it seems the maximum pagesize is limited to 25 eventhough 50/75/100 or
any higher value is set for the page dynamically
does anyone know if the max limit is 25 or i am doing something wrong
thanks for the help

code below:
<asp:DropDownList id="rowsPage" runat="server" AutoPostBack="true"
EnableViewState="true">
<asp:ListItem Value="5">5</asp:ListItem>
<asp:ListItem Value="10" Selected="True">10</asp:ListItem>
<asp:ListItem Value="15">15</asp:ListItem>
<asp:ListItem Value="20">20</asp:ListItem>
<asp:ListItem Value="25">25</asp:ListItem>
<asp:ListItem Value="50">50</asp:ListItem>
<asp:ListItem Value="75">75</asp:ListItem>
<asp:ListItem Value="100">100</asp:ListItem>
</asp:DropDownList>

with datagrid_sample
.PageSize = rowsPage.SelectedItem.Value
.DataSource = CreateDataSet()
.DataBind()
end with

-Pasha


Ray D.

unread,
Apr 21, 2003, 6:40:17 PM4/21/03
to
There are several articles on datagrid paging listed here:
http://www.datagridgirl.com/articles.aspx


--
Ray D.
(remove NOSPAM. from my e-mail address for a direct reply)

"Pasha" <rasoo...@hotmail.com> wrote in message
news:#NR0AhEC...@TK2MSFTNGP10.phx.gbl...

0 new messages