Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 10-Jul-12 10:43am
v3
Comments
_Zorro_ 10-Jul-12 12:12pm    
Web or desktop, because your tags are confusing (C# and VB.NET)
Sergey Alexandrovich Kryukov 10-Jul-12 13:59pm    
Tag application type of UI library you use.
--SA

1 solution

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.
 
Share this answer
 
Comments
Riyasktr 10-Jul-12 16:39pm    
Dear

as per my question i am asking , am not doing any filtering , i have a template linkbutton column in the grdiview and the link button do some operations, It do some calculation and it create some records and insert to a database table a, actually my application an attendance management system.

For this link button operation , it take some more time and i am not asking that time consuming, if i click the first row link button and autmaticcallt there is apostback occurs , i want to prevent this postback and possible to click the second row link button , but and do the second calculation do asynchrounsly without effecting my previous operation like facebook Load on demand.
pradiprenushe 11-Jul-12 0:46am    
I think use webservice for calculatoin part in javascript. And add that javascript function to button click.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900