Hi,
I am trying to do datagrid paging like this:
<asp
ataGrid id="DataGrid1" style="Z-INDEX: 101; LEFT: 200px; POSITION: absolute; TOP: 96px"
runat="server" Width="192px" Height="80px" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px"
BackColor="White" CellPadding="4" AllowCustomPaging="True" PageSize="5" AllowPaging="True">
and then in event procedure i write
Private Sub DataGrid1_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles DataGrid1.PageIndexChanged
DataGrid1.CurrentPageIndex = e.NewPageIndex
After binding etc, the result of the aspx page shows only one page of resultlist although it should show 2 pages.I am doing paging with mode=numbers.
what could be the problem?
I am trying to do datagrid paging like this:
<asp
runat="server" Width="192px" Height="80px" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px"
BackColor="White" CellPadding="4" AllowCustomPaging="True" PageSize="5" AllowPaging="True">
and then in event procedure i write
Private Sub DataGrid1_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles DataGrid1.PageIndexChanged
DataGrid1.CurrentPageIndex = e.NewPageIndex
After binding etc, the result of the aspx page shows only one page of resultlist although it should show 2 pages.I am doing paging with mode=numbers.
what could be the problem?