all groups > vb.net controls > august 2005 >
You're in the

vb.net controls

group:

Multiple Datagrids to scroll through



Multiple Datagrids to scroll through <arch>
8/3/2005 12:00:00 AM
vb.net controls: Hello. In SQL Server Query Analyzer, if I type in, say, 2 select queries,
it returns 2 datagrids of results, with a scrollbar on the right to scroll
between the 2 (or more) datagrids. I wanted to implement this in a vb.net
application I am writing. Does anyone know how this is done? Any example
code would be nice.

Re: Multiple Datagrids to scroll through Chris
8/3/2005 1:52:23 PM
[quoted text, click to view]

Why can't you just dynamically add X number of datagrids to the screen.
I would assume that it what the analyzer does.

Re: Multiple Datagrids to scroll through Cor Ligthert [MVP]
8/4/2005 9:40:28 AM
Chris,

I don't know how it is done, however I assume something as
Set the two datagrids to the same datasource
Set by the added scrollbar the currencymanager.position of that

And let it go.

I have not tried it, however assume that it will go.

I hope this helps,

Cor

Re: Multiple Datagrids to scroll through Cor Ligthert [MVP]
8/4/2005 9:41:39 AM
Arch

I don't know how it is done, however I assume something as
Set the two datagrids to the same datasource
Set by the added scrollbar the currencymanager.position of that

And let it go.

I have not tried it, however assume that it will go.

I hope this helps,

Cor


Re: Multiple Datagrids to scroll through Cor Ligthert [MVP]
8/4/2005 9:42:19 AM
Chris

Sorry I was thinking about it and thought it was your question.

Cor

AddThis Social Bookmark Button