我正在 Visual Studio 2019 中开发一个应用程序。 我有一个设置为自动生成列的 gridView。 网格有分页,我不想要,所以我设置了
AllowPaging="false" PagerSettings-Visible="false"
但是,现在只返回数据网格中的第一页行,我希望它向我显示所有行。我已将高度设置为自动,但它仍然不会显示所有行。就像分页的可见性被隐藏,但功能仍然存在。
这是代码 aspx 代码:
<cc1:GridView ID="tgvCallDetailSummary"
runat="server"
Style="position: absolute; top:25px; left: 5px; height:auto "
AllowPaging="false"
PagerSettings-Visible="false"
AutoGenerateColumns="true"
SqlStatement=""
StaticTableWidth="0"
OnPreRender="tgvCallDetailSummary_PreRender">
<Columns>
</Columns>
</cc1:GridView>
设法解决问题 添加 pagesize=20