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.
Chris - 03 Aug 2005 18:52 GMT
> 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.
Why can't you just dynamically add X number of datagrids to the screen.
I would assume that it what the analyzer does.
Chris
Cor Ligthert [MVP] - 04 Aug 2005 08:40 GMT
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
Cor Ligthert [MVP] - 04 Aug 2005 08:42 GMT
Chris
Sorry I was thinking about it and thought it was your question.
Cor
Cor Ligthert [MVP] - 04 Aug 2005 08:41 GMT
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