通过在asp.net c中滚动或拖动来选择gridview行# [英] select gridview rows by scrolling or dragging in asp.net c#

查看:72
本文介绍了通过在asp.net c中滚动或拖动来选择gridview行#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何通过在asp.net c#中滚动来选择gridview行。



现在我通过点击它来选择一行并且我应用了一些css class to to it,to show to be selected。



要求:假设用户有1500行复选框。如果用户想要选择1000行,则必须单击复选框1000次。我想通过滚动选择行来做到这一点。

How can we select the rows of gridview by scrolling in asp.net c#.

For now i select a row by clicking on it and i apply some css class to to it, to show to be selected.

Requirement: suppose user has 1500 rows with check box. if user want to select 1000 rows, hw will have to click checkbox 1000 times. i want to do that by selecting the rows by scrolling.

推荐答案

这是一个糟糕的UI设计决定,恕我直言。我不想每天都要使用这样的应用程序。



基本上,向您的客户提供1500行数据只是疯了;没有人希望/可以同时处理这么多信息。



您是否考虑过分页和过滤?



根据您的问题,这可以通过gridview上方的一个简单复选框来解决,该复选框将以编程方式检查所有项目。

或带有'全部检查'和/或''的上下文菜单选中所有选中的选项。

有几种方法可以满足您的要求;用滚动来做这件事情是最糟糕的。



不要以为我试图劝阻你;我只是想警告你,你做出的设计决定可能不是一个好主意。

祝你好运。
This is a terrible UI design decision, IMHO. I wouldn't want to have to use such an application every day.

Basically, presenting 1500 rows of data to your client is just insane; nobody want/can handle that much information at the same time.

Have you considered paging and filtering?

As per to your problem, this could be solved by a simple checkbox somewhere above the gridview which would check all items programmatically.
Or a context menu with a 'Check all' and/or a 'Check all selected' option.
There are several ways to fulfill your requirement; doing it with scrolling is one of the worse.

Don't think I'm trying to discourage you; I'm just trying to warn you that the design decision you made may not be such a good idea.
Best luck.


这篇关于通过在asp.net c中滚动或拖动来选择gridview行#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆