0

我的问题可能有点奇怪,但我对基于 Web 的编程很陌生。在基于 Windows 的应用程序中,如果我需要让用户编辑和查看表格,那么我正在使用数据网格。在基于 Web 的情况下,有 GridView 但它是只读工具。我想看看asp.net中有没有这样的工具。你能帮忙吗?谢谢

4

2 回答 2

0

If you want your end users to have a little bit better experience then you should consider the alternative to use a javascript based grid, which is a more modern way to build a grid. Then everything executes smoothly in the web browser without the need to post back and reload the page, and the server will only be called when it's really necessary (loading data, saving data) but not when you change a row when it´s being edited, or if you do incremental searches.

My favorite is the Slickgrid. And here is a cool Slickgrid example with Async post rendering.

If you choose the server control way (ListView etc) you will have a lot of postbacks every time you sort, change editing mode in cell or edit data.

Look at this question if you want some more examples of javascript grids.

于 2014-11-09T22:56:13.600 回答
0

看一下ListView控件,基本上,它允许您指定方法来显示、更新、编辑和删除数据源中的记录。

有很多例子。这是一篇不错的文章

于 2014-11-09T20:08:18.887 回答