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.
(remove NOSPAM. from my e-mail address for a direct reply)
"Pasha" <rasoo...@hotmail.com> wrote in message
news:#NR0AhEC...@TK2MSFTNGP10.phx.gbl...