PC Review


Reply
Thread Tools Rate Thread

Scrolling a "DataGridView" in an "OnCellValidating()" handler

 
 
Larry Smith
Guest
Posts: n/a
 
      31st Dec 2007
Does anyone know how to scroll a "DataGridView" during an
"OnCellValidating()" handler. If the cell being validated isn't currently in
view, I simply want to scroll it back into view before displaying any error
message. Note that "DataGridView.FirstDisplayedScrollingRowIndex" is the
obvious solution but you can't (easily) rely on this since it makes a
re-entrant call into the same "OnCellValidating()" handler among others (for
no valid reason I can think of). Circumventing this is no easy task however
as I've discovered over the past several hours. If someone knows of an
alternate way, possibly by adjusting the vertical scroll bar directly (using
"DataGridView.VerticalScrollBar" probably but I can't make this work
either), it would be greatly appreciated. Thanks in advance.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Click the star to watch this topic] "bollywood actress""bollywood wallpapers" "bollywood news" "bollywood movies" "bollywood videosongs" "bollywood masala" "bollywood" "b Naeem Microsoft C# .NET 0 4th Jan 2010 07:57 AM
Field Names: "LongName", "ShortName", "Code", "Description","Comments" PeteCresswell Microsoft Access 2 26th Feb 2009 12:41 AM
ReVIEW (Erratum): some shortcut keys not working anymore-----help""""""""PhpApach...WORK WELL!!!! wbrowse@gmail.com Windows XP Help 0 13th Apr 2007 01:29 PM
<FORM METHOD="post" onSubmit="return fieldcheck()" name="orientation" action="http://ws-kitty.BU.edu/AT/survey/orientation/script/write.asp" language="JavaScript"> Joeyej Microsoft ASP .NET 0 4th Jun 2004 09:55 PM
Manual "Windows Update" produces "ActiveX/active scripting" error message even with "LOW" security level setting in "Trusted" Zone Ray2 Windows XP Help 1 14th Nov 2003 07:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:21 PM.