Gridview asp.net 中的可拖动行
嘿伙计们, 我有一个gridview,现在我想让行可拖动,以便用户可以更改gridview的排序顺序,并且数据源也应该受到影响,以便我可以在数据库中保存最新的顺序。
请给出一些建议或示例,我如何才能实现这一目标。
Hey guys,
i have a gridview, now i want to make the rows draggable, so that user can change the sort order of the gridview, and also the datasource should get affect, so that i can save the latest order in the database.
Please give some suggestion or samples, how i can achieve this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议你找到一个不同的控件。拖动行并不是大多数主要 ASP.NET 控件制造商为网格实现的功能,而且您真的认为您的用户会希望以这种方式排序吗?单击列标题是首选方法,这是有充分理由的。
I'd suggest you find a different control. Dragging rows is not a feature that most major ASP.NET control makers have implemented for grids, besides do your really think your users will want to sort in this way? Clicking on the column header is the preferred method for a very good reason.
您是否看过 jqGrid - 这是他们针对 ASP.NET Webforms 的 示例
Have you taken a look at jqGrid - here is their example specific to ASP.NET webforms