以多页格式组织大表 [英] organizing big tables in a multi-page format

查看:85
本文介绍了以多页格式组织大表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何组织要在多个页面中显示的表格内容?假设您有一个包含100行的表,并且您希望一次查看10行(就像在页面中组织多个电子邮件消息的方式一样)。我们有一个特殊的数据结构吗?我如何添加过滤器来更好地管理它?

How to organize contents of a table to be displayed in multiple pages? Consider you have a table with 100 rows and you want to view 10 rows at a time (Like the way that several Email messages are organized in pages). Do we have a special data structure for this? And how can I add filters to manage it better?

推荐答案

WebMatrix数据库中以表格格式显示数据的最常用方法是WebGrid帮助程序。

它提供了多种选项,用于对显示的行进行排序和分页,并支持使用AJAX异步更新网格内容。

有关完整的类参考,请查看 WebGrid类 [ ^ ]。

也许,深入WebGrid教程的最佳位置是 Mike Brind''s网站 [ ^ ]。

查看WebMatrix WebGrid开始 [ ^ ]然后搜索更高级的文章。
The most used way to display data in tabular format from a database in WebMatrix is the WebGrid helper.
It offers a wide variety of options for sorting and paging the rows displayed and supports asynchronously updating the grid content using AJAX.
For a complete class reference look at WebGrid Class[^].
Maybe, the best place for in-depth WebGrid tutorials is the Mike Brind''s site[^].
Start with Looking At The WebMatrix WebGrid[^] and then search for more advanced articles.


看起来你真正需要的是适当的布局CSS样式,难怪......正确分页



有关此主题的一些CodeProject文章可以帮助您。请参阅:

对大型结果集进行分页ASP.NET [ ^ ],

ASP.NET分页 [ ^ ]。



实际上,还有很多内容要看: http://www.codeproject.com/search.aspx?doctypeid=1&q=%22ASP.NET%22+table+%28paging+OR+pagination %29 [ ^ ]。



假设你没有hav如果列太多,CSS样式可以确保您使用所有可用的页面宽度并有效地排列列,而分页将负责垂直维度和按行范围控制导航。



祝你好运,

-SA
It looks like what you really need is proper layout CSS styles and, no wonder… proper paging.

There is a number of CodeProject article on this topic which can help you. Please see:
Paging of Large Resultsets in ASP.NET[^],
ASP.NET Pagination[^].

Actually, there a a lot more to look at: http://www.codeproject.com/search.aspx?doctypeid=1&q=%22ASP.NET%22+table+%28paging+OR+pagination%29[^].

Assuming you don''t have too many columns, CSS styles can ensure you use all available page width and effectively arrange columns, while paging will be responsible for vertical dimension and control navigation by ranges of rows.

Good luck,
—SA


这篇关于以多页格式组织大表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆