Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 gridview 和其中的 datapager ,我找不到隐藏寻呼机的方法。我试过这段代码:
pager.Visible = (pager.PageSize < pager.TotalRowCount);
还有其他方法可以实现吗?
如果在 OnDataBound 事件中添加它,则可以使用此代码
protected void GridView1_DataBound(object sender, EventArgs e) { pager.Visible = (pager.PageSize < pager.TotalRowCount); }