Solved

Automatic scrolling in winform datagrids

Posted on 2006-06-19
3
425 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
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 …

786 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