如果您正在使用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

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


当前回答

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.

其他回答

我们已经在一个项目中使用了jqGrid,并获得了一些好运气。大量的内联编辑选项等。如果这些东西不是必要的,那么我们只使用@Hrvoje这样的普通foreach循环。

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

我们使用MVCContrib网格。

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

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

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

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

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.