带有异步方法的GridView

编程入门 行业动态 更新时间:2024-10-25 02:26:44
本文介绍了带有异步方法的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

本文发布于:2023-11-12 18:55:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582269.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:方法   GridView

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!