Solved

Automatic scrolling in winform datagrids

Posted on 2006-06-19
3
441 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Six Sigma Control Plans

734 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