带有异步方法的GridView [英] GridView With Async Methods

查看:64
本文介绍了带有异步方法的GridView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的

我有一个网格视图,它包含很多记录,我将链接按钮作为模板"列绑定到该网格视图.

链接按钮根据所选的行数据执行一些计算,对于此计算,它执行了一项艰巨的任务,并且需要花费更多的时间在3分钟左右,而不是我不是在谈论耗时.问题是如果我要从同一网格视图计算另一行,请等到之前的计算完成.

我需要针对此问题的解决方案,我发现了很多关于异步方法的文章,请给出有关如何管理多次点击(通过网格视图链接按钮模板列而没有任何延迟)的基本思路

我的意思是我想单击第一个链接按钮并开始计算,同时我想选择另一行,并且可以单击该计算而不影响上一个,并且与其他所有行相同,例如按需负载技术,facebook页面加载技术或作为后台工作者.

问候
Riyas Mohammed Kari

Dears

I have a grid-view and it contain with a lot of records and I bind a link button to that grid-view as a Template column.

The link button do some calculation depends on the selected row data ,For this calculations it do a big task and it take some more time around 3 minutes and not that i am not talking about the time consuming. The problem is if i want to calculate another row from the same grid-view i wait until the previous calculation is completed.

I need a solution for this issue , I found so many articled about async methods , please give a basic idea about how i manage multiple click(through grid view link button template column without any delay

I mean that i want to click the first link button and it start calculating, same time i want to select some another row and possible to click the calculation without affecting the previous one and same as other all rows like as load on demand technology , facebook page load technology or as background worker.

Regards
Riyas Mohammed Kari

推荐答案

在绑定网格之前,您可以将数据存储到数据表中;您可以在其中整理记录的地方,还可以实现dataview来修改datatable的值.
那么我认为您的耗时问题将得到解决,因为它将在计算数据后与网格绑定.
before bind grid you may store the data into a datatable; where you may claculate records, you also implement dataview to modify datatable value.
then i think your time consuming problem will be solved because it will bind with grid after calculating the data.


这篇关于带有异步方法的GridView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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