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 和 ObjectDataSource 来进行自定义分页,一切都很好。现在客户想要一个“全部显示”按钮。在此按钮的事件处理程序中,我能做些什么来实现这一点?
谢谢你的时间。
如果您想在单击按钮时显示所有记录,那么最好AllowPaging = false在按钮的单击处理程序上进行设置。它只会禁用分页功能并将所有记录绑定到gridview:
AllowPaging = false
Gridview1.AllowPaging = false; Gridview1.DataBind();