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