Grid View 分页不起作用意味着它不能逐页显示记录
<data:EntityGridView ID="GridOpen" runat="server" AutoGenerateColumns="false" AllowMultiColumnSorting="false"
DefaultSortDirection="Ascending" AllowPaging="false" PageSize="10" OnPageIndexChanging="GridOpen_PageIndexChanging"
OnSelectedIndexChanged="GridOpen_SelectedIndexChanged" DataKeyNames="OrderNo" Width="100%"
OnRowDataBound="GridOpen_OnRowDataBound" ExcelExportFileName="Export_AccountTerms.xls">
<Columns>
<asp:BoundField DataField="OrderNo" HeaderText="Order No" SortExpression="[OrderNo]" />
</Columns>
这是我的数据源和绑定网格
_actOpen = _actOrdServices.GetPaged("StatusID=1 AND AssignedDispatchBoardID = " + DispatchBoard + " AND CompanyId=" + Session["CompanyId"].ToString(), "OrderNo Desc", GridOpen.PageIndex, GridOpen.PageSize, out count);
GridOpen.DataSource = _actOpen;
我也尝试过分页
GridOpen.AllowPaging = true;
我的商店程序运行良好,但在这里我不知道这不是在网格中显示分页
任何指南都将受到热烈欢迎。