Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / March 2007

Tip: Looking for answers? Try searching our database.

Smooth scroll of tall DataGridView row

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard Lewis Haggard - 23 Mar 2007 16:30 GMT
I have an unbound DataGridView control that has some cells that may contain
more multi-line text than can be completely displayed in the available
screen space. When the height of a row exceeds the DataGridView's height, it
becomes impossible to view the out of sight portion of the row that is below
the DataGridView's client area. Down arrow of the text cursor simply moves
the caret down out of sight. Contrary to expectations, the DataGridView's
scroll bar doesn't smoothly scroll. It just jumps the next row into view and
the problematic row is scrolled out of view.

Is it possible to provide a scroll mechanism that will bring into view those
areas of a cell that are out of view and, if so, how?
Signature

Richard Lewis Haggard
www.Haggard-And-Associates.com

Ciaran O''Donnell - 28 Mar 2007 00:07 GMT
An idea is to add the datagridview to a scrollable control like a panel. Then
you could use the scrolling of the panel which would be unaware of the row
height and would scroll normaly. The only issue would be tracking the caret
to ensure it stays visible.

Signature

Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com

> I have an unbound DataGridView control that has some cells that may contain
> more multi-line text than can be completely displayed in the available
[quoted text clipped - 7 lines]
> Is it possible to provide a scroll mechanism that will bring into view those
> areas of a cell that are out of view and, if so, how?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.