Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Automatic scrolling in winform datagrids

Posted on 2006-06-19
3
Medium Priority
?
456 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
1 Comment
 
LVL 10

Accepted Solution

by:
jagadeesh_motamarri earned 160 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
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 …
Loops Section Overview

783 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