Solved

Automatic scrolling in winform datagrids

Posted on 2006-06-19
3
432 Views
Last Modified: 2013-11-23
i have two winform datagrids in the form and loaded the
datas in the  both  grids.  when i scroll the first grid , want to scroll the scond grid automatically  with same postions(horizontal & vertical scrollig).?
0
Comment
Question by:senthillnathan
3 Comments
 
LVL 10

Accepted Solution

by:
jagadeesh_motamarri earned 40 total points
ID: 16939464
Ok...here is sample code from - http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20912041.html

You might want to change yours accordingly. And don't forget to look at the above link.

CODE:

<div id="d1" onscroll="document.getElementById('d2').scrollTop=this.scrollTop;" style="width:100px;height:20px; overflow-y:scroll; border:1px solid black">blah blah some text that'll need scrolling to be viewed in a small div</div>
<div id="d2" onscroll="document.getElementById('d1').scrollTop=this.scrollTop;" style="width:100px;height:20px; overflow-y:scroll; border:1px solid black">blah blah some text that'll need scrolling to be viewed in a small div</div>

_____Jags.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
draw a Christmas tree by using a nested loop? 26 78
MS Access from Delphi 31 62
Bot application - advice 3 39
Octopus Deploy: need a Time Event that fires every midnight 2 16
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question