VB NewThread stalling on Gridview Databind (RowDataBound) event

gchq

Well-known member
Joined
Dec 14, 2007
Messages
168
Programming Experience
10+
Hi there



I'm attempting to get a Gridview to run under a new thread (the gridview fires a RowDataBound event that makes a Database call for each gridview row and it's quite time consuming) whilst a progress bar pops up so that the user knows something is happening.



The code runs fine until it gets to the DataBind event, then fails to hand it over to the RowDataBound event. Since, as far as I can see, it's not actually making a call outside of the new thread I can't figure out where I'm going wrong!



Any ideas?
 
Multithreading in Web environment? That's not very good idea. At least that's what i've figured out after some struggling with pretty same issues like you.
 
I have it working fine where database calls, pdf's generated and tables updated are made wrapped in a 'for' statement! This one is a mystery - during debugging it will return just the first record, but won't even do that if it's started without debugging...
 
Back
Top