Showing posts with label grids. Show all posts
Showing posts with label grids. Show all posts

Wednesday, March 28, 2012

Multithreading?

Hi

Can an application populate two Grids from the database,
simultaneously without using the multithreading using ADO.NET

Thanks in advance
MR_FBI
mr_fbi2020@.yahoo.comMr_FBI (mr_fbi2020@.yahoo.com) writes:
> Can an application populate two Grids from the database,
> simultaneously without using the multithreading using ADO.NET

My guess is that you can't.

From a database perspective, you need two different connections, and that's
not a big deal. ADO .Net can handle that. Then I don't know about data
binding and all that, but since calls in ADO .Net are synchronous, I can't
see how you could fill the grids without multiple threads.

But if you want to know for sure, you should find a forum devoted to
..Net programming.

--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||Erland Sommarskog <sommar@.algonet.se> wrote in message news:<Xns94992E388188Yazorman@.127.0.0.1>...
> Mr_FBI (mr_fbi2020@.yahoo.com) writes:
> > Can an application populate two Grids from the database,
> > simultaneously without using the multithreading using ADO.NET
>
> My guess is that you can't.
> From a database perspective, you need two different connections, and that's
> not a big deal. ADO .Net can handle that. Then I don't know about data
> binding and all that, but since calls in ADO .Net are synchronous, I can't
> see how you could fill the grids without multiple threads.
> But if you want to know for sure, you should find a forum devoted to
> .Net programming.

Thank you, I think you are right. As soon as I get my VS.NET 2003, I
will try myself. :)
Best Regards|||Yes. You can call a stored procedure that returns 2 resultsets. Just fill the
dataset and then bind each table to each datagrid. It's simply a single call
without multi calls/threads.

--
-oj
http://www.rac4sql.net

"Mr_FBI" <mr_fbi2020@.yahoo.com> wrote in message
news:861074e2.0402231132.73707b3b@.posting.google.c om...
> Hi
> Can an application populate two Grids from the database,
> simultaneously without using the multithreading using ADO.NET
> Thanks in advance
> MR_FBI
> mr_fbi2020@.yahoo.com