如果您正在使用ASP。你怎么做网格显示? 自己卷? 哪里有图书馆?

这些是我为ASP找到的一些已知的网格显示解决方案。NET MVC

ASP.NET MVC Flexgrid - Has nice column layout method Code based ASP.NET MVC GridView - simple, small, clean MVC Contrib - grid from codePlex jQueryGrid - jQuery grid Datatables - jQuery plugin - believed to be section 508 compliant (.NET binding) extJS - cross browser RIA framework - has grid support Ingrid - jQuery data grid jqxGrid - jQuery data grid Telerik MVC - jQuery based grid that is GPL v2 licensed, commercial version also available MVC Controls Toolkit - Client Site Based Grid Infragistics igGrid - jQuery based MVC grid dhtmlxGrid - Ajax-enabled JavaScript grid control ASP.net MVC Awesome Ajax List - a different, very flexible approach, can be used as a grid Syncfusion MVC Grid - Commercial grid ASP.net MVC Awesome Grid - part of the Awesome library (jQuery based) Shield UI Grid for ASP.NET MVC Grid controls for ASP.NET MVC 5 projects

如果你知道任何其他你正在使用或知道是好的,请告诉我。


当前回答

如果它是只读的,一个好主意是创建一个表,然后应用一些非常简单但功能强大的JQuery。

对于简单的替代颜色,尝试这个简单的JQuery。

如果需要排序,这个JQuery插件非常好用。

其他回答

如果只是为了查看数据,我会使用简单的foreach甚至aspRepeater。为了进行编辑,我构建了专门的视图和操作。不管怎样,我不喜欢webforms GridView的内联编辑功能,这个更清晰更好——一个视图用于查看,另一个视图用于编辑/新建。

我们在Stack Exchange Data Explorer中使用Slick Grid(示例包含2000行)。

我发现它优于jqGrid和flexigrid。它有一个非常完整的功能集,我怎么推荐都不为过。

这里有它的使用示例。

您可以看到源代码示例,了解如何将它集成到ASP中。NET MVC应用程序:https://code.google.com/p/stack-exchange-data-explorer/

我在这里尝试了Mvc控件工具箱网格的例子。这似乎是一个相当强大和易于使用的网格。本教程不仅解释了如何使用网格,还解释了如何分页、组织视图模型和数据注释。值得一读。

You can use also the Insert/update/delete datagrid of my MVC Controls Toolkit available here on codeplex: http://mvccontrolstoolkit.codeplex.com/. Here you can download a complete example, here the datagrid working and here and here tutorials. The DataGrid works completely client side and mantains thechange set between posts. Yes it mantains Changeset, this means, you can access both old version and modified version of each record to see what changes to pass to the DB(what need to be modified deleted or inserted). This Changeset is mantained after several posts till you either confirm or cancel the modifications on the server side.

我们使用MVCContrib网格。

http://weblogs.asp.net/rajbk/archive/2010/05/08/asp-net-mvc-paging-sorting-filtering-using-the-mvccontrib-grid-and-pager.aspx