Solved

Automatic scrolling in winform datagrids

Posted on 2006-06-19
3
410 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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

763 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now