如何配置我的DataGrid使用分页,这样它不会从数据库中提取的所有行,而是只对当前页面的行。
How do I configure my datagrid to use paging such that it won't pull ALL the rows from the database, but rather only the rows for the current page.
顺便说一句,我应该使用仍然是一个数据网格,或是否有新的控制?
BTW, should I be using a datagrid still or is there a newer control?
由于乔希提到的,有不同的方法来做到这一点。
As Josh mentioned, there are different ways to do it.
检查这个问题/回答一个变化:http://stackoverflow.com/questions/475982/asp-net-datagrid-and-custom-paging
Check this question/answer for one variation: http://stackoverflow.com/questions/475982/asp-net-datagrid-and-custom-paging